34 writes to Response
Azure.Core (1)
Azure.Core.Experimental (1)
Azure.Core.TestFramework (4)
Azure.Core.Tests (9)
Azure.Data.Tables (1)
Azure.Storage.Blobs.Batch (1)
Azure.Storage.Blobs.Batch.Samples.Tests (1)
Azure.Storage.Blobs.Batch.Tests (1)
Azure.Storage.Blobs.ChangeFeed.Samples.Tests (1)
Azure.Storage.Blobs.ChangeFeed.Tests (1)
Azure.Storage.Blobs.Samples.Tests (1)
Azure.Storage.Blobs.Tests (1)
Azure.Storage.Common.Samples.Tests (1)
Azure.Storage.Common.Tests (4)
Azure.Storage.Files.DataLake.Samples.Tests (1)
Azure.Storage.Files.DataLake.Tests (1)
Azure.Storage.Files.Shares.Samples.Tests (1)
Azure.Storage.Files.Shares.Tests (1)
Azure.Storage.Queues.Samples.Tests (1)
Azure.Storage.Queues.Tests (1)
25589 references to Response
Azure.AI.AnomalyDetector (88)
Generated\AnomalyDetectorRestClient.cs (86)
69switch (message.Response.Status)
74using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
76return Response.FromValue(value, message.Response);
79throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
96switch (message.Response.Status)
101using var document = JsonDocument.Parse(message.Response.ContentStream);
103return Response.FromValue(value, message.Response);
106throw _clientDiagnostics.CreateRequestFailedException(message.Response);
141switch (message.Response.Status)
146using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
148return Response.FromValue(value, message.Response);
151throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
168switch (message.Response.Status)
173using var document = JsonDocument.Parse(message.Response.ContentStream);
175return Response.FromValue(value, message.Response);
178throw _clientDiagnostics.CreateRequestFailedException(message.Response);
213switch (message.Response.Status)
218using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
220return Response.FromValue(value, message.Response);
223throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
240switch (message.Response.Status)
245using var document = JsonDocument.Parse(message.Response.ContentStream);
247return Response.FromValue(value, message.Response);
250throw _clientDiagnostics.CreateRequestFailedException(message.Response);
285var headers = new AnomalyDetectorTrainMultivariateModelHeaders(message.Response);
286switch (message.Response.Status)
289return ResponseWithHeaders.FromValue(headers, message.Response);
291throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
308var headers = new AnomalyDetectorTrainMultivariateModelHeaders(message.Response);
309switch (message.Response.Status)
312return ResponseWithHeaders.FromValue(headers, message.Response);
314throw _clientDiagnostics.CreateRequestFailedException(message.Response);
340switch (message.Response.Status)
345using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
347return Response.FromValue(value, message.Response);
350throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
361switch (message.Response.Status)
366using var document = JsonDocument.Parse(message.Response.ContentStream);
368return Response.FromValue(value, message.Response);
371throw _clientDiagnostics.CreateRequestFailedException(message.Response);
397switch (message.Response.Status)
400return message.Response;
402throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
413switch (message.Response.Status)
416return message.Response;
418throw _clientDiagnostics.CreateRequestFailedException(message.Response);
456var headers = new AnomalyDetectorDetectAnomalyHeaders(message.Response);
457switch (message.Response.Status)
460return ResponseWithHeaders.FromValue(headers, message.Response);
462throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
480var headers = new AnomalyDetectorDetectAnomalyHeaders(message.Response);
481switch (message.Response.Status)
484return ResponseWithHeaders.FromValue(headers, message.Response);
486throw _clientDiagnostics.CreateRequestFailedException(message.Response);
512switch (message.Response.Status)
517using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
519return Response.FromValue(value, message.Response);
522throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
533switch (message.Response.Status)
538using var document = JsonDocument.Parse(message.Response.ContentStream);
540return Response.FromValue(value, message.Response);
543throw _clientDiagnostics.CreateRequestFailedException(message.Response);
570var headers = new AnomalyDetectorExportModelHeaders(message.Response);
571switch (message.Response.Status)
576return ResponseWithHeaders.FromValue(value, headers, message.Response);
579throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
590var headers = new AnomalyDetectorExportModelHeaders(message.Response);
591switch (message.Response.Status)
596return ResponseWithHeaders.FromValue(value, headers, message.Response);
599throw _clientDiagnostics.CreateRequestFailedException(message.Response);
633switch (message.Response.Status)
638using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
640return Response.FromValue(value, message.Response);
643throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
655switch (message.Response.Status)
660using var document = JsonDocument.Parse(message.Response.ContentStream);
662return Response.FromValue(value, message.Response);
665throw _clientDiagnostics.CreateRequestFailedException(message.Response);
698switch (message.Response.Status)
703using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
705return Response.FromValue(value, message.Response);
708throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
727switch (message.Response.Status)
732using var document = JsonDocument.Parse(message.Response.ContentStream);
734return Response.FromValue(value, message.Response);
737throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Azure.AI.FormRecognizer (344)
Azure.AI.Language.Conversations (10)
Azure.AI.Language.QuestionAnswering (18)
Azure.AI.MetricsAdvisor (550)
Generated\MicrosoftAzureMetricsAdvisorRestAPIOpenAPIV2RestClient.cs (548)
58switch (message.Response.Status)
63using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
65return Response.FromValue(value, message.Response);
68throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
78switch (message.Response.Status)
83using var document = JsonDocument.Parse(message.Response.ContentStream);
85return Response.FromValue(value, message.Response);
88throw _clientDiagnostics.CreateRequestFailedException(message.Response);
114switch (message.Response.Status)
119using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
121return Response.FromValue(value, message.Response);
124throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
135switch (message.Response.Status)
140using var document = JsonDocument.Parse(message.Response.ContentStream);
142return Response.FromValue(value, message.Response);
145throw _clientDiagnostics.CreateRequestFailedException(message.Response);
182switch (message.Response.Status)
187using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
189return Response.FromValue(value, message.Response);
192throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
210switch (message.Response.Status)
215using var document = JsonDocument.Parse(message.Response.ContentStream);
217return Response.FromValue(value, message.Response);
220throw _clientDiagnostics.CreateRequestFailedException(message.Response);
246switch (message.Response.Status)
249return message.Response;
251throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
262switch (message.Response.Status)
265return message.Response;
267throw _clientDiagnostics.CreateRequestFailedException(message.Response);
302var headers = new MicrosoftAzureMetricsAdvisorRestAPIOpenAPIV2CreateAnomalyAlertingConfigurationHeaders(message.Response);
303switch (message.Response.Status)
306return ResponseWithHeaders.FromValue(headers, message.Response);
308throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
325var headers = new MicrosoftAzureMetricsAdvisorRestAPIOpenAPIV2CreateAnomalyAlertingConfigurationHeaders(message.Response);
326switch (message.Response.Status)
329return ResponseWithHeaders.FromValue(headers, message.Response);
331throw _clientDiagnostics.CreateRequestFailedException(message.Response);
379switch (message.Response.Status)
384using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
386return Response.FromValue(value, message.Response);
389throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
409switch (message.Response.Status)
414using var document = JsonDocument.Parse(message.Response.ContentStream);
416return Response.FromValue(value, message.Response);
419throw _clientDiagnostics.CreateRequestFailedException(message.Response);
465switch (message.Response.Status)
470using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
472return Response.FromValue(value, message.Response);
475throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
495switch (message.Response.Status)
500using var document = JsonDocument.Parse(message.Response.ContentStream);
502return Response.FromValue(value, message.Response);
505throw _clientDiagnostics.CreateRequestFailedException(message.Response);
551switch (message.Response.Status)
556using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
558return Response.FromValue(value, message.Response);
561throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
581switch (message.Response.Status)
586using var document = JsonDocument.Parse(message.Response.ContentStream);
588return Response.FromValue(value, message.Response);
591throw _clientDiagnostics.CreateRequestFailedException(message.Response);
617switch (message.Response.Status)
622using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
624return Response.FromValue(value, message.Response);
627throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
638switch (message.Response.Status)
643using var document = JsonDocument.Parse(message.Response.ContentStream);
645return Response.FromValue(value, message.Response);
648throw _clientDiagnostics.CreateRequestFailedException(message.Response);
685switch (message.Response.Status)
690using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
692return Response.FromValue(value, message.Response);
695throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
713switch (message.Response.Status)
718using var document = JsonDocument.Parse(message.Response.ContentStream);
720return Response.FromValue(value, message.Response);
723throw _clientDiagnostics.CreateRequestFailedException(message.Response);
749switch (message.Response.Status)
752return message.Response;
754throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
765switch (message.Response.Status)
768return message.Response;
770throw _clientDiagnostics.CreateRequestFailedException(message.Response);
805var headers = new MicrosoftAzureMetricsAdvisorRestAPIOpenAPIV2CreateAnomalyDetectionConfigurationHeaders(message.Response);
806switch (message.Response.Status)
809return ResponseWithHeaders.FromValue(headers, message.Response);
811throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
828var headers = new MicrosoftAzureMetricsAdvisorRestAPIOpenAPIV2CreateAnomalyDetectionConfigurationHeaders(message.Response);
829switch (message.Response.Status)
832return ResponseWithHeaders.FromValue(headers, message.Response);
834throw _clientDiagnostics.CreateRequestFailedException(message.Response);
871switch (message.Response.Status)
876using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
878return Response.FromValue(value, message.Response);
881throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
894switch (message.Response.Status)
899using var document = JsonDocument.Parse(message.Response.ContentStream);
901return Response.FromValue(value, message.Response);
904throw _clientDiagnostics.CreateRequestFailedException(message.Response);
942switch (message.Response.Status)
947using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
949return Response.FromValue(value, message.Response);
952throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
970switch (message.Response.Status)
975using var document = JsonDocument.Parse(message.Response.ContentStream);
977return Response.FromValue(value, message.Response);
980throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1028switch (message.Response.Status)
1033using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1035return Response.FromValue(value, message.Response);
1038throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1058switch (message.Response.Status)
1063using var document = JsonDocument.Parse(message.Response.ContentStream);
1065return Response.FromValue(value, message.Response);
1068throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1116switch (message.Response.Status)
1121using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1123return Response.FromValue(value, message.Response);
1126throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1146switch (message.Response.Status)
1151using var document = JsonDocument.Parse(message.Response.ContentStream);
1153return Response.FromValue(value, message.Response);
1156throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1199switch (message.Response.Status)
1204using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1206return Response.FromValue(value, message.Response);
1209throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1228switch (message.Response.Status)
1233using var document = JsonDocument.Parse(message.Response.ContentStream);
1235return Response.FromValue(value, message.Response);
1238throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1275switch (message.Response.Status)
1280using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1282return Response.FromValue(value, message.Response);
1285throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1298switch (message.Response.Status)
1303using var document = JsonDocument.Parse(message.Response.ContentStream);
1305return Response.FromValue(value, message.Response);
1308throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1344switch (message.Response.Status)
1349using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1351return Response.FromValue(value, message.Response);
1354throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1372switch (message.Response.Status)
1377using var document = JsonDocument.Parse(message.Response.ContentStream);
1379return Response.FromValue(value, message.Response);
1382throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1417var headers = new MicrosoftAzureMetricsAdvisorRestAPIOpenAPIV2CreateCredentialHeaders(message.Response);
1418switch (message.Response.Status)
1421return ResponseWithHeaders.FromValue(headers, message.Response);
1423throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1440var headers = new MicrosoftAzureMetricsAdvisorRestAPIOpenAPIV2CreateCredentialHeaders(message.Response);
1441switch (message.Response.Status)
1444return ResponseWithHeaders.FromValue(headers, message.Response);
1446throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1480switch (message.Response.Status)
1485using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1487return Response.FromValue(value, message.Response);
1490throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1502switch (message.Response.Status)
1507using var document = JsonDocument.Parse(message.Response.ContentStream);
1509return Response.FromValue(value, message.Response);
1512throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1549switch (message.Response.Status)
1554using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1556return Response.FromValue(value, message.Response);
1559throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1577switch (message.Response.Status)
1582using var document = JsonDocument.Parse(message.Response.ContentStream);
1584return Response.FromValue(value, message.Response);
1587throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1613switch (message.Response.Status)
1616return message.Response;
1618throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1629switch (message.Response.Status)
1632return message.Response;
1634throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1660switch (message.Response.Status)
1665using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1667return Response.FromValue(value, message.Response);
1670throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1681switch (message.Response.Status)
1686using var document = JsonDocument.Parse(message.Response.ContentStream);
1688return Response.FromValue(value, message.Response);
1691throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1750switch (message.Response.Status)
1755using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1757return Response.FromValue(value, message.Response);
1760throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1777switch (message.Response.Status)
1782using var document = JsonDocument.Parse(message.Response.ContentStream);
1784return Response.FromValue(value, message.Response);
1787throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1822var headers = new MicrosoftAzureMetricsAdvisorRestAPIOpenAPIV2CreateDataFeedHeaders(message.Response);
1823switch (message.Response.Status)
1826return ResponseWithHeaders.FromValue(headers, message.Response);
1828throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1845var headers = new MicrosoftAzureMetricsAdvisorRestAPIOpenAPIV2CreateDataFeedHeaders(message.Response);
1846switch (message.Response.Status)
1849return ResponseWithHeaders.FromValue(headers, message.Response);
1851throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1877switch (message.Response.Status)
1882using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1884return Response.FromValue(value, message.Response);
1887throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1898switch (message.Response.Status)
1903using var document = JsonDocument.Parse(message.Response.ContentStream);
1905return Response.FromValue(value, message.Response);
1908throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1945switch (message.Response.Status)
1950using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1952return Response.FromValue(value, message.Response);
1955throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1973switch (message.Response.Status)
1978using var document = JsonDocument.Parse(message.Response.ContentStream);
1980return Response.FromValue(value, message.Response);
1983throw _clientDiagnostics.CreateRequestFailedException(message.Response);
2009switch (message.Response.Status)
2012return message.Response;
2014throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
2025switch (message.Response.Status)
2028return message.Response;
2030throw _clientDiagnostics.CreateRequestFailedException(message.Response);
2056switch (message.Response.Status)
2061using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
2063return Response.FromValue(value, message.Response);
2066throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
2077switch (message.Response.Status)
2082using var document = JsonDocument.Parse(message.Response.ContentStream);
2084return Response.FromValue(value, message.Response);
2087throw _clientDiagnostics.CreateRequestFailedException(message.Response);
2132switch (message.Response.Status)
2137using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
2139return Response.FromValue(value, message.Response);
2142throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
2161switch (message.Response.Status)
2166using var document = JsonDocument.Parse(message.Response.ContentStream);
2168return Response.FromValue(value, message.Response);
2171throw _clientDiagnostics.CreateRequestFailedException(message.Response);
2206var headers = new MicrosoftAzureMetricsAdvisorRestAPIOpenAPIV2CreateMetricFeedbackHeaders(message.Response);
2207switch (message.Response.Status)
2210return ResponseWithHeaders.FromValue(headers, message.Response);
2212throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
2229var headers = new MicrosoftAzureMetricsAdvisorRestAPIOpenAPIV2CreateMetricFeedbackHeaders(message.Response);
2230switch (message.Response.Status)
2233return ResponseWithHeaders.FromValue(headers, message.Response);
2235throw _clientDiagnostics.CreateRequestFailedException(message.Response);
2274switch (message.Response.Status)
2279using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
2281return Response.FromValue(value, message.Response);
2284throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
2297switch (message.Response.Status)
2302using var document = JsonDocument.Parse(message.Response.ContentStream);
2304return Response.FromValue(value, message.Response);
2307throw _clientDiagnostics.CreateRequestFailedException(message.Response);
2342var headers = new MicrosoftAzureMetricsAdvisorRestAPIOpenAPIV2CreateHookHeaders(message.Response);
2343switch (message.Response.Status)
2346return ResponseWithHeaders.FromValue(headers, message.Response);
2348throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
2365var headers = new MicrosoftAzureMetricsAdvisorRestAPIOpenAPIV2CreateHookHeaders(message.Response);
2366switch (message.Response.Status)
2369return ResponseWithHeaders.FromValue(headers, message.Response);
2371throw _clientDiagnostics.CreateRequestFailedException(message.Response);
2397switch (message.Response.Status)
2402using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
2404return Response.FromValue(value, message.Response);
2407throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
2418switch (message.Response.Status)
2423using var document = JsonDocument.Parse(message.Response.ContentStream);
2425return Response.FromValue(value, message.Response);
2428throw _clientDiagnostics.CreateRequestFailedException(message.Response);
2465switch (message.Response.Status)
2470using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
2472return Response.FromValue(value, message.Response);
2475throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
2493switch (message.Response.Status)
2498using var document = JsonDocument.Parse(message.Response.ContentStream);
2500return Response.FromValue(value, message.Response);
2503throw _clientDiagnostics.CreateRequestFailedException(message.Response);
2529switch (message.Response.Status)
2532return message.Response;
2534throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
2545switch (message.Response.Status)
2548return message.Response;
2550throw _clientDiagnostics.CreateRequestFailedException(message.Response);
2598switch (message.Response.Status)
2603using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
2605return Response.FromValue(value, message.Response);
2608throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
2628switch (message.Response.Status)
2633using var document = JsonDocument.Parse(message.Response.ContentStream);
2635return Response.FromValue(value, message.Response);
2638throw _clientDiagnostics.CreateRequestFailedException(message.Response);
2676switch (message.Response.Status)
2679return message.Response;
2681throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
2699switch (message.Response.Status)
2702return message.Response;
2704throw _clientDiagnostics.CreateRequestFailedException(message.Response);
2731switch (message.Response.Status)
2736using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
2738return Response.FromValue(value, message.Response);
2741throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
2752switch (message.Response.Status)
2757using var document = JsonDocument.Parse(message.Response.ContentStream);
2759return Response.FromValue(value, message.Response);
2762throw _clientDiagnostics.CreateRequestFailedException(message.Response);
2800switch (message.Response.Status)
2805using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
2807return Response.FromValue(value, message.Response);
2810throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
2828switch (message.Response.Status)
2833using var document = JsonDocument.Parse(message.Response.ContentStream);
2835return Response.FromValue(value, message.Response);
2838throw _clientDiagnostics.CreateRequestFailedException(message.Response);
2886switch (message.Response.Status)
2891using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
2893return Response.FromValue(value, message.Response);
2896throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
2916switch (message.Response.Status)
2921using var document = JsonDocument.Parse(message.Response.ContentStream);
2923return Response.FromValue(value, message.Response);
2926throw _clientDiagnostics.CreateRequestFailedException(message.Response);
2974switch (message.Response.Status)
2979using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
2981return Response.FromValue(value, message.Response);
2984throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
3004switch (message.Response.Status)
3009using var document = JsonDocument.Parse(message.Response.ContentStream);
3011return Response.FromValue(value, message.Response);
3014throw _clientDiagnostics.CreateRequestFailedException(message.Response);
3051switch (message.Response.Status)
3056using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
3058return Response.FromValue(value, message.Response);
3061throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
3074switch (message.Response.Status)
3079using var document = JsonDocument.Parse(message.Response.ContentStream);
3081return Response.FromValue(value, message.Response);
3084throw _clientDiagnostics.CreateRequestFailedException(message.Response);
3132switch (message.Response.Status)
3137using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
3139return Response.FromValue(value, message.Response);
3142throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
3162switch (message.Response.Status)
3167using var document = JsonDocument.Parse(message.Response.ContentStream);
3169return Response.FromValue(value, message.Response);
3172throw _clientDiagnostics.CreateRequestFailedException(message.Response);
3213switch (message.Response.Status)
3218using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
3220return Response.FromValue(value, message.Response);
3223throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
3245switch (message.Response.Status)
3250using var document = JsonDocument.Parse(message.Response.ContentStream);
3252return Response.FromValue(value, message.Response);
3255throw _clientDiagnostics.CreateRequestFailedException(message.Response);
3296switch (message.Response.Status)
3301using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
3303return Response.FromValue(value, message.Response);
3306throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
3328switch (message.Response.Status)
3333using var document = JsonDocument.Parse(message.Response.ContentStream);
3335return Response.FromValue(value, message.Response);
3338throw _clientDiagnostics.CreateRequestFailedException(message.Response);
3379switch (message.Response.Status)
3384using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
3386return Response.FromValue(value, message.Response);
3389throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
3411switch (message.Response.Status)
3416using var document = JsonDocument.Parse(message.Response.ContentStream);
3418return Response.FromValue(value, message.Response);
3421throw _clientDiagnostics.CreateRequestFailedException(message.Response);
3462switch (message.Response.Status)
3467using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
3469return Response.FromValue(value, message.Response);
3472throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
3494switch (message.Response.Status)
3499using var document = JsonDocument.Parse(message.Response.ContentStream);
3501return Response.FromValue(value, message.Response);
3504throw _clientDiagnostics.CreateRequestFailedException(message.Response);
3545switch (message.Response.Status)
3550using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
3552return Response.FromValue(value, message.Response);
3555throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
3577switch (message.Response.Status)
3582using var document = JsonDocument.Parse(message.Response.ContentStream);
3584return Response.FromValue(value, message.Response);
3587throw _clientDiagnostics.CreateRequestFailedException(message.Response);
3628switch (message.Response.Status)
3633using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
3635return Response.FromValue(value, message.Response);
3638throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
3660switch (message.Response.Status)
3665using var document = JsonDocument.Parse(message.Response.ContentStream);
3667return Response.FromValue(value, message.Response);
3670throw _clientDiagnostics.CreateRequestFailedException(message.Response);
3711switch (message.Response.Status)
3716using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
3718return Response.FromValue(value, message.Response);
3721throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
3743switch (message.Response.Status)
3748using var document = JsonDocument.Parse(message.Response.ContentStream);
3750return Response.FromValue(value, message.Response);
3753throw _clientDiagnostics.CreateRequestFailedException(message.Response);
3794switch (message.Response.Status)
3799using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
3801return Response.FromValue(value, message.Response);
3804throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
3826switch (message.Response.Status)
3831using var document = JsonDocument.Parse(message.Response.ContentStream);
3833return Response.FromValue(value, message.Response);
3836throw _clientDiagnostics.CreateRequestFailedException(message.Response);
3875switch (message.Response.Status)
3880using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
3882return Response.FromValue(value, message.Response);
3885throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
3910switch (message.Response.Status)
3915using var document = JsonDocument.Parse(message.Response.ContentStream);
3917return Response.FromValue(value, message.Response);
3920throw _clientDiagnostics.CreateRequestFailedException(message.Response);
3959switch (message.Response.Status)
3964using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
3966return Response.FromValue(value, message.Response);
3969throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
3994switch (message.Response.Status)
3999using var document = JsonDocument.Parse(message.Response.ContentStream);
4001return Response.FromValue(value, message.Response);
4004throw _clientDiagnostics.CreateRequestFailedException(message.Response);
4043switch (message.Response.Status)
4048using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
4050return Response.FromValue(value, message.Response);
4053throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
4078switch (message.Response.Status)
4083using var document = JsonDocument.Parse(message.Response.ContentStream);
4085return Response.FromValue(value, message.Response);
4088throw _clientDiagnostics.CreateRequestFailedException(message.Response);
4122switch (message.Response.Status)
4127using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
4129return Response.FromValue(value, message.Response);
4132throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
4152switch (message.Response.Status)
4157using var document = JsonDocument.Parse(message.Response.ContentStream);
4159return Response.FromValue(value, message.Response);
4162throw _clientDiagnostics.CreateRequestFailedException(message.Response);
4201switch (message.Response.Status)
4206using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
4208return Response.FromValue(value, message.Response);
4211throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
4236switch (message.Response.Status)
4241using var document = JsonDocument.Parse(message.Response.ContentStream);
4243return Response.FromValue(value, message.Response);
4246throw _clientDiagnostics.CreateRequestFailedException(message.Response);
4285switch (message.Response.Status)
4290using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
4292return Response.FromValue(value, message.Response);
4295throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
4320switch (message.Response.Status)
4325using var document = JsonDocument.Parse(message.Response.ContentStream);
4327return Response.FromValue(value, message.Response);
4330throw _clientDiagnostics.CreateRequestFailedException(message.Response);
4368switch (message.Response.Status)
4373using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
4375return Response.FromValue(value, message.Response);
4378throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
4402switch (message.Response.Status)
4407using var document = JsonDocument.Parse(message.Response.ContentStream);
4409return Response.FromValue(value, message.Response);
4412throw _clientDiagnostics.CreateRequestFailedException(message.Response);
4446switch (message.Response.Status)
4451using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
4453return Response.FromValue(value, message.Response);
4456throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
4476switch (message.Response.Status)
4481using var document = JsonDocument.Parse(message.Response.ContentStream);
4483return Response.FromValue(value, message.Response);
4486throw _clientDiagnostics.CreateRequestFailedException(message.Response);
4519switch (message.Response.Status)
4524using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
4526return Response.FromValue(value, message.Response);
4529throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
4548switch (message.Response.Status)
4553using var document = JsonDocument.Parse(message.Response.ContentStream);
4555return Response.FromValue(value, message.Response);
4558throw _clientDiagnostics.CreateRequestFailedException(message.Response);
4596switch (message.Response.Status)
4601using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
4603return Response.FromValue(value, message.Response);
4606throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
4630switch (message.Response.Status)
4635using var document = JsonDocument.Parse(message.Response.ContentStream);
4637return Response.FromValue(value, message.Response);
4640throw _clientDiagnostics.CreateRequestFailedException(message.Response);
4678switch (message.Response.Status)
4683using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
4685return Response.FromValue(value, message.Response);
4688throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
4712switch (message.Response.Status)
4717using var document = JsonDocument.Parse(message.Response.ContentStream);
4719return Response.FromValue(value, message.Response);
4722throw _clientDiagnostics.CreateRequestFailedException(message.Response);
4756switch (message.Response.Status)
4761using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
4763return Response.FromValue(value, message.Response);
4766throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
4786switch (message.Response.Status)
4791using var document = JsonDocument.Parse(message.Response.ContentStream);
4793return Response.FromValue(value, message.Response);
4796throw _clientDiagnostics.CreateRequestFailedException(message.Response);
4835switch (message.Response.Status)
4840using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
4842return Response.FromValue(value, message.Response);
4845throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
4870switch (message.Response.Status)
4875using var document = JsonDocument.Parse(message.Response.ContentStream);
4877return Response.FromValue(value, message.Response);
4880throw _clientDiagnostics.CreateRequestFailedException(message.Response);
4919switch (message.Response.Status)
4924using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
4926return Response.FromValue(value, message.Response);
4929throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
4954switch (message.Response.Status)
4959using var document = JsonDocument.Parse(message.Response.ContentStream);
4961return Response.FromValue(value, message.Response);
4964throw _clientDiagnostics.CreateRequestFailedException(message.Response);
5003switch (message.Response.Status)
5008using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
5010return Response.FromValue(value, message.Response);
5013throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
5038switch (message.Response.Status)
5043using var document = JsonDocument.Parse(message.Response.ContentStream);
5045return Response.FromValue(value, message.Response);
5048throw _clientDiagnostics.CreateRequestFailedException(message.Response);
5082switch (message.Response.Status)
5087using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
5089return Response.FromValue(value, message.Response);
5092throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
5112switch (message.Response.Status)
5117using var document = JsonDocument.Parse(message.Response.ContentStream);
5119return Response.FromValue(value, message.Response);
5122throw _clientDiagnostics.CreateRequestFailedException(message.Response);
5161switch (message.Response.Status)
5166using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
5168return Response.FromValue(value, message.Response);
5171throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
5196switch (message.Response.Status)
5201using var document = JsonDocument.Parse(message.Response.ContentStream);
5203return Response.FromValue(value, message.Response);
5206throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Azure.AI.Personalizer (154)
Generated\EvaluationsRestClient.cs (32)
64switch (message.Response.Status)
67return message.Response;
69throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
86switch (message.Response.Status)
89return message.Response;
91throw _clientDiagnostics.CreateRequestFailedException(message.Response);
123switch (message.Response.Status)
128using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
130return Response.FromValue(value, message.Response);
133throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
150switch (message.Response.Status)
155using var document = JsonDocument.Parse(message.Response.ContentStream);
157return Response.FromValue(value, message.Response);
160throw _clientDiagnostics.CreateRequestFailedException(message.Response);
184switch (message.Response.Status)
189using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
196return Response.FromValue(value, message.Response);
199throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
209switch (message.Response.Status)
214using var document = JsonDocument.Parse(message.Response.ContentStream);
221return Response.FromValue(value, message.Response);
224throw _clientDiagnostics.CreateRequestFailedException(message.Response);
259var headers = new EvaluationsCreateHeaders(message.Response);
260switch (message.Response.Status)
265using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
267return ResponseWithHeaders.FromValue(value, headers, message.Response);
270throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
287var headers = new EvaluationsCreateHeaders(message.Response);
288switch (message.Response.Status)
293using var document = JsonDocument.Parse(message.Response.ContentStream);
295return ResponseWithHeaders.FromValue(value, headers, message.Response);
298throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\PolicyRestClient.cs (24)
56switch (message.Response.Status)
61using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
63return Response.FromValue(value, message.Response);
66throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
76switch (message.Response.Status)
81using var document = JsonDocument.Parse(message.Response.ContentStream);
83return Response.FromValue(value, message.Response);
86throw _clientDiagnostics.CreateRequestFailedException(message.Response);
121switch (message.Response.Status)
126using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
128return Response.FromValue(value, message.Response);
131throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
148switch (message.Response.Status)
153using var document = JsonDocument.Parse(message.Response.ContentStream);
155return Response.FromValue(value, message.Response);
158throw _clientDiagnostics.CreateRequestFailedException(message.Response);
182switch (message.Response.Status)
187using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
189return Response.FromValue(value, message.Response);
192throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
202switch (message.Response.Status)
207using var document = JsonDocument.Parse(message.Response.ContentStream);
209return Response.FromValue(value, message.Response);
212throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Azure.AI.TextAnalytics (122)
Generated\TextAnalyticsRestClient.cs (120)
70var headers = new TextAnalyticsAnalyzeHeaders(message.Response);
71switch (message.Response.Status)
74return ResponseWithHeaders.FromValue(headers, message.Response);
76throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
87var headers = new TextAnalyticsAnalyzeHeaders(message.Response);
88switch (message.Response.Status)
91return ResponseWithHeaders.FromValue(headers, message.Response);
93throw _clientDiagnostics.CreateRequestFailedException(message.Response);
141switch (message.Response.Status)
146using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
148return Response.FromValue(value, message.Response);
151throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
171switch (message.Response.Status)
176using var document = JsonDocument.Parse(message.Response.ContentStream);
178return Response.FromValue(value, message.Response);
181throw _clientDiagnostics.CreateRequestFailedException(message.Response);
223switch (message.Response.Status)
228using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
230return Response.FromValue(value, message.Response);
233throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
247switch (message.Response.Status)
252using var document = JsonDocument.Parse(message.Response.ContentStream);
254return Response.FromValue(value, message.Response);
257throw _clientDiagnostics.CreateRequestFailedException(message.Response);
284var headers = new TextAnalyticsCancelHealthJobHeaders(message.Response);
285switch (message.Response.Status)
288return ResponseWithHeaders.FromValue(headers, message.Response);
290throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
301var headers = new TextAnalyticsCancelHealthJobHeaders(message.Response);
302switch (message.Response.Status)
305return ResponseWithHeaders.FromValue(headers, message.Response);
307throw _clientDiagnostics.CreateRequestFailedException(message.Response);
358var headers = new TextAnalyticsHealthHeaders(message.Response);
359switch (message.Response.Status)
362return ResponseWithHeaders.FromValue(headers, message.Response);
364throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
384var headers = new TextAnalyticsHealthHeaders(message.Response);
385switch (message.Response.Status)
388return ResponseWithHeaders.FromValue(headers, message.Response);
390throw _clientDiagnostics.CreateRequestFailedException(message.Response);
446switch (message.Response.Status)
451using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
453return Response.FromValue(value, message.Response);
456throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
477switch (message.Response.Status)
482using var document = JsonDocument.Parse(message.Response.ContentStream);
484return Response.FromValue(value, message.Response);
487throw _clientDiagnostics.CreateRequestFailedException(message.Response);
556switch (message.Response.Status)
561using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
563return Response.FromValue(value, message.Response);
566throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
592switch (message.Response.Status)
597using var document = JsonDocument.Parse(message.Response.ContentStream);
599return Response.FromValue(value, message.Response);
602throw _clientDiagnostics.CreateRequestFailedException(message.Response);
658switch (message.Response.Status)
663using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
665return Response.FromValue(value, message.Response);
668throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
689switch (message.Response.Status)
694using var document = JsonDocument.Parse(message.Response.ContentStream);
696return Response.FromValue(value, message.Response);
699throw _clientDiagnostics.CreateRequestFailedException(message.Response);
750switch (message.Response.Status)
755using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
757return Response.FromValue(value, message.Response);
760throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
780switch (message.Response.Status)
785using var document = JsonDocument.Parse(message.Response.ContentStream);
787return Response.FromValue(value, message.Response);
790throw _clientDiagnostics.CreateRequestFailedException(message.Response);
841switch (message.Response.Status)
846using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
848return Response.FromValue(value, message.Response);
851throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
871switch (message.Response.Status)
876using var document = JsonDocument.Parse(message.Response.ContentStream);
878return Response.FromValue(value, message.Response);
881throw _clientDiagnostics.CreateRequestFailedException(message.Response);
942switch (message.Response.Status)
947using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
949return Response.FromValue(value, message.Response);
952throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
974switch (message.Response.Status)
979using var document = JsonDocument.Parse(message.Response.ContentStream);
981return Response.FromValue(value, message.Response);
984throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1017switch (message.Response.Status)
1022using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1024return Response.FromValue(value, message.Response);
1027throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1044switch (message.Response.Status)
1049using var document = JsonDocument.Parse(message.Response.ContentStream);
1051return Response.FromValue(value, message.Response);
1054throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1087switch (message.Response.Status)
1092using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1094return Response.FromValue(value, message.Response);
1097throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1114switch (message.Response.Status)
1119using var document = JsonDocument.Parse(message.Response.ContentStream);
1121return Response.FromValue(value, message.Response);
1124throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1156switch (message.Response.Status)
1161using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1163return Response.FromValue(value, message.Response);
1166throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1183switch (message.Response.Status)
1188using var document = JsonDocument.Parse(message.Response.ContentStream);
1190return Response.FromValue(value, message.Response);
1193throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1225switch (message.Response.Status)
1230using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1232return Response.FromValue(value, message.Response);
1235throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1252switch (message.Response.Status)
1257using var document = JsonDocument.Parse(message.Response.ContentStream);
1259return Response.FromValue(value, message.Response);
1262throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Azure.AI.Translation.Document (108)
Generated\DocumentTranslationRestClient.cs (106)
79var headers = new DocumentTranslationStartTranslationHeaders(message.Response);
80switch (message.Response.Status)
83return ResponseWithHeaders.FromValue(headers, message.Response);
85throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
112var headers = new DocumentTranslationStartTranslationHeaders(message.Response);
113switch (message.Response.Status)
116return ResponseWithHeaders.FromValue(headers, message.Response);
118throw _clientDiagnostics.CreateRequestFailedException(message.Response);
224var headers = new DocumentTranslationGetTranslationsStatusHeaders(message.Response);
225switch (message.Response.Status)
230using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
232return ResponseWithHeaders.FromValue(value, headers, message.Response);
235throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
295var headers = new DocumentTranslationGetTranslationsStatusHeaders(message.Response);
296switch (message.Response.Status)
301using var document = JsonDocument.Parse(message.Response.ContentStream);
303return ResponseWithHeaders.FromValue(value, headers, message.Response);
306throw _clientDiagnostics.CreateRequestFailedException(message.Response);
335var headers = new DocumentTranslationGetDocumentStatusHeaders(message.Response);
336switch (message.Response.Status)
341using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
343return ResponseWithHeaders.FromValue(value, headers, message.Response);
346throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
358var headers = new DocumentTranslationGetDocumentStatusHeaders(message.Response);
359switch (message.Response.Status)
364using var document = JsonDocument.Parse(message.Response.ContentStream);
366return ResponseWithHeaders.FromValue(value, headers, message.Response);
369throw _clientDiagnostics.CreateRequestFailedException(message.Response);
398var headers = new DocumentTranslationGetTranslationStatusHeaders(message.Response);
399switch (message.Response.Status)
404using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
406return ResponseWithHeaders.FromValue(value, headers, message.Response);
409throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
423var headers = new DocumentTranslationGetTranslationStatusHeaders(message.Response);
424switch (message.Response.Status)
429using var document = JsonDocument.Parse(message.Response.ContentStream);
431return ResponseWithHeaders.FromValue(value, headers, message.Response);
434throw _clientDiagnostics.CreateRequestFailedException(message.Response);
466switch (message.Response.Status)
471using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
473return Response.FromValue(value, message.Response);
476throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
493switch (message.Response.Status)
498using var document = JsonDocument.Parse(message.Response.ContentStream);
500return Response.FromValue(value, message.Response);
503throw _clientDiagnostics.CreateRequestFailedException(message.Response);
609var headers = new DocumentTranslationGetDocumentsStatusHeaders(message.Response);
610switch (message.Response.Status)
615using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
617return ResponseWithHeaders.FromValue(value, headers, message.Response);
620throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
678var headers = new DocumentTranslationGetDocumentsStatusHeaders(message.Response);
679switch (message.Response.Status)
684using var document = JsonDocument.Parse(message.Response.ContentStream);
686return ResponseWithHeaders.FromValue(value, headers, message.Response);
689throw _clientDiagnostics.CreateRequestFailedException(message.Response);
716var headers = new DocumentTranslationGetSupportedDocumentFormatsHeaders(message.Response);
717switch (message.Response.Status)
722using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
724return ResponseWithHeaders.FromValue(value, headers, message.Response);
727throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
740var headers = new DocumentTranslationGetSupportedDocumentFormatsHeaders(message.Response);
741switch (message.Response.Status)
746using var document = JsonDocument.Parse(message.Response.ContentStream);
748return ResponseWithHeaders.FromValue(value, headers, message.Response);
751throw _clientDiagnostics.CreateRequestFailedException(message.Response);
778var headers = new DocumentTranslationGetSupportedGlossaryFormatsHeaders(message.Response);
779switch (message.Response.Status)
784using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
786return ResponseWithHeaders.FromValue(value, headers, message.Response);
789throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
802var headers = new DocumentTranslationGetSupportedGlossaryFormatsHeaders(message.Response);
803switch (message.Response.Status)
808using var document = JsonDocument.Parse(message.Response.ContentStream);
810return ResponseWithHeaders.FromValue(value, headers, message.Response);
813throw _clientDiagnostics.CreateRequestFailedException(message.Response);
837var headers = new DocumentTranslationGetSupportedStorageSourcesHeaders(message.Response);
838switch (message.Response.Status)
843using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
845return ResponseWithHeaders.FromValue(value, headers, message.Response);
848throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
858var headers = new DocumentTranslationGetSupportedStorageSourcesHeaders(message.Response);
859switch (message.Response.Status)
864using var document = JsonDocument.Parse(message.Response.ContentStream);
866return ResponseWithHeaders.FromValue(value, headers, message.Response);
869throw _clientDiagnostics.CreateRequestFailedException(message.Response);
950var headers = new DocumentTranslationGetTranslationsStatusHeaders(message.Response);
951switch (message.Response.Status)
956using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
958return ResponseWithHeaders.FromValue(value, headers, message.Response);
961throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1028var headers = new DocumentTranslationGetTranslationsStatusHeaders(message.Response);
1029switch (message.Response.Status)
1034using var document = JsonDocument.Parse(message.Response.ContentStream);
1036return ResponseWithHeaders.FromValue(value, headers, message.Response);
1039throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1118var headers = new DocumentTranslationGetDocumentsStatusHeaders(message.Response);
1119switch (message.Response.Status)
1124using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1126return ResponseWithHeaders.FromValue(value, headers, message.Response);
1129throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1194var headers = new DocumentTranslationGetDocumentsStatusHeaders(message.Response);
1195switch (message.Response.Status)
1200using var document = JsonDocument.Parse(message.Response.ContentStream);
1202return ResponseWithHeaders.FromValue(value, headers, message.Response);
1205throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Azure.Analytics.Purview.Account (114)
Azure.Analytics.Purview.Catalog (690)
Generated\PurviewGlossaries.cs (280)
107switch (message.Response.Status)
110return message.Response;
112throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
117return message.Response;
201switch (message.Response.Status)
204return message.Response;
206throw _clientDiagnostics.CreateRequestFailedException(message.Response);
211return message.Response;
372switch (message.Response.Status)
375return message.Response;
377throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
382return message.Response;
517switch (message.Response.Status)
520return message.Response;
522throw _clientDiagnostics.CreateRequestFailedException(message.Response);
527return message.Response;
686switch (message.Response.Status)
689return message.Response;
691throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
696return message.Response;
839switch (message.Response.Status)
842return message.Response;
844throw _clientDiagnostics.CreateRequestFailedException(message.Response);
849return message.Response;
1008switch (message.Response.Status)
1011return message.Response;
1013throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1018return message.Response;
1161switch (message.Response.Status)
1164return message.Response;
1166throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1171return message.Response;
1273switch (message.Response.Status)
1276return message.Response;
1278throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1283return message.Response;
1369switch (message.Response.Status)
1372return message.Response;
1374throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1379return message.Response;
1538switch (message.Response.Status)
1541return message.Response;
1543throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1548return message.Response;
1692switch (message.Response.Status)
1695return message.Response;
1697throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1702return message.Response;
1746switch (message.Response.Status)
1749return message.Response;
1751throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1756return message.Response;
1783switch (message.Response.Status)
1786return message.Response;
1788throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1793return message.Response;
1894switch (message.Response.Status)
1897return message.Response;
1899throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1904return message.Response;
1991switch (message.Response.Status)
1994return message.Response;
1996throw _clientDiagnostics.CreateRequestFailedException(message.Response);
2001return message.Response;
2061switch (message.Response.Status)
2064return message.Response;
2066throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
2071return message.Response;
2113switch (message.Response.Status)
2116return message.Response;
2118throw _clientDiagnostics.CreateRequestFailedException(message.Response);
2123return message.Response;
2196switch (message.Response.Status)
2199return message.Response;
2201throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
2206return message.Response;
2251switch (message.Response.Status)
2254return message.Response;
2256throw _clientDiagnostics.CreateRequestFailedException(message.Response);
2261return message.Response;
2523switch (message.Response.Status)
2526return message.Response;
2528throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
2533return message.Response;
2767switch (message.Response.Status)
2770return message.Response;
2772throw _clientDiagnostics.CreateRequestFailedException(message.Response);
2777return message.Response;
2929switch (message.Response.Status)
2932return message.Response;
2934throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
2939return message.Response;
3071switch (message.Response.Status)
3074return message.Response;
3076throw _clientDiagnostics.CreateRequestFailedException(message.Response);
3081return message.Response;
3334switch (message.Response.Status)
3337return message.Response;
3339throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
3344return message.Response;
3578switch (message.Response.Status)
3581return message.Response;
3583throw _clientDiagnostics.CreateRequestFailedException(message.Response);
3588return message.Response;
3632switch (message.Response.Status)
3635return message.Response;
3637throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
3642return message.Response;
3669switch (message.Response.Status)
3672return message.Response;
3674throw _clientDiagnostics.CreateRequestFailedException(message.Response);
3679return message.Response;
3826switch (message.Response.Status)
3829return message.Response;
3831throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
3836return message.Response;
3969switch (message.Response.Status)
3972return message.Response;
3974throw _clientDiagnostics.CreateRequestFailedException(message.Response);
3979return message.Response;
4235switch (message.Response.Status)
4238return message.Response;
4240throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
4245return message.Response;
4479switch (message.Response.Status)
4482return message.Response;
4484throw _clientDiagnostics.CreateRequestFailedException(message.Response);
4489return message.Response;
4559switch (message.Response.Status)
4562return message.Response;
4564throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
4569return message.Response;
4619switch (message.Response.Status)
4622return message.Response;
4624throw _clientDiagnostics.CreateRequestFailedException(message.Response);
4629return message.Response;
4705switch (message.Response.Status)
4708return message.Response;
4710throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
4715return message.Response;
4763switch (message.Response.Status)
4766return message.Response;
4768throw _clientDiagnostics.CreateRequestFailedException(message.Response);
4773return message.Response;
4838switch (message.Response.Status)
4841return message.Response;
4843throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
4848return message.Response;
4896switch (message.Response.Status)
4899return message.Response;
4901throw _clientDiagnostics.CreateRequestFailedException(message.Response);
4906return message.Response;
4971switch (message.Response.Status)
4974return message.Response;
4976throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
4981return message.Response;
5029switch (message.Response.Status)
5032return message.Response;
5034throw _clientDiagnostics.CreateRequestFailedException(message.Response);
5039return message.Response;
5101switch (message.Response.Status)
5104return message.Response;
5106throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
5111return message.Response;
5156switch (message.Response.Status)
5159return message.Response;
5161throw _clientDiagnostics.CreateRequestFailedException(message.Response);
5166return message.Response;
5276switch (message.Response.Status)
5279return message.Response;
5281throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
5286return message.Response;
5368switch (message.Response.Status)
5371return message.Response;
5373throw _clientDiagnostics.CreateRequestFailedException(message.Response);
5378return message.Response;
5529switch (message.Response.Status)
5532return message.Response;
5534throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
5539return message.Response;
5675switch (message.Response.Status)
5678return message.Response;
5680throw _clientDiagnostics.CreateRequestFailedException(message.Response);
5685return message.Response;
5729switch (message.Response.Status)
5732return message.Response;
5734throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
5739return message.Response;
5766switch (message.Response.Status)
5769return message.Response;
5771throw _clientDiagnostics.CreateRequestFailedException(message.Response);
5776return message.Response;
5879switch (message.Response.Status)
5882return message.Response;
5884throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
5889return message.Response;
5978switch (message.Response.Status)
5981return message.Response;
5983throw _clientDiagnostics.CreateRequestFailedException(message.Response);
5988return message.Response;
6058switch (message.Response.Status)
6061return message.Response;
6063throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
6068return message.Response;
6110switch (message.Response.Status)
6113return message.Response;
6115throw _clientDiagnostics.CreateRequestFailedException(message.Response);
6120return message.Response;
6233switch (message.Response.Status)
6236return message.Response;
6238throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
6243return message.Response;
6328switch (message.Response.Status)
6331return message.Response;
6333throw _clientDiagnostics.CreateRequestFailedException(message.Response);
6338return message.Response;
6442switch (message.Response.Status)
6445return message.Response;
6447throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
6452return message.Response;
6536switch (message.Response.Status)
6539return message.Response;
6541throw _clientDiagnostics.CreateRequestFailedException(message.Response);
6546return message.Response;
6703switch (message.Response.Status)
6706return message.Response;
6708throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
6713return message.Response;
6848switch (message.Response.Status)
6851return message.Response;
6853throw _clientDiagnostics.CreateRequestFailedException(message.Response);
6858return message.Response;
6935switch (message.Response.Status)
6938return message.Response;
6940throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
6945return message.Response;
6990switch (message.Response.Status)
6993return message.Response;
6995throw _clientDiagnostics.CreateRequestFailedException(message.Response);
7000return message.Response;
7076switch (message.Response.Status)
7079return new LowLevelBinaryDataOperation(_clientDiagnostics, Pipeline, message.Request, message.Response, OperationFinalStateVia.AzureAsyncOperation, "PurviewGlossaries.ImportGlossaryTermsViaCsv");
7081throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
7086return new LowLevelBinaryDataOperation(_clientDiagnostics, Pipeline, message.Request, message.Response, OperationFinalStateVia.AzureAsyncOperation, "PurviewGlossaries.ImportGlossaryTermsViaCsv");
7134switch (message.Response.Status)
7137return new LowLevelBinaryDataOperation(_clientDiagnostics, Pipeline, message.Request, message.Response, OperationFinalStateVia.AzureAsyncOperation, "PurviewGlossaries.ImportGlossaryTermsViaCsv");
7139throw _clientDiagnostics.CreateRequestFailedException(message.Response);
7144return new LowLevelBinaryDataOperation(_clientDiagnostics, Pipeline, message.Request, message.Response, OperationFinalStateVia.AzureAsyncOperation, "PurviewGlossaries.ImportGlossaryTermsViaCsv");
7215switch (message.Response.Status)
7218return new LowLevelBinaryDataOperation(_clientDiagnostics, Pipeline, message.Request, message.Response, OperationFinalStateVia.AzureAsyncOperation, "PurviewGlossaries.ImportGlossaryTermsViaCsvByGlossaryName");
7220throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
7225return new LowLevelBinaryDataOperation(_clientDiagnostics, Pipeline, message.Request, message.Response, OperationFinalStateVia.AzureAsyncOperation, "PurviewGlossaries.ImportGlossaryTermsViaCsvByGlossaryName");
7273switch (message.Response.Status)
7276return new LowLevelBinaryDataOperation(_clientDiagnostics, Pipeline, message.Request, message.Response, OperationFinalStateVia.AzureAsyncOperation, "PurviewGlossaries.ImportGlossaryTermsViaCsvByGlossaryName");
7278throw _clientDiagnostics.CreateRequestFailedException(message.Response);
7283return new LowLevelBinaryDataOperation(_clientDiagnostics, Pipeline, message.Request, message.Response, OperationFinalStateVia.AzureAsyncOperation, "PurviewGlossaries.ImportGlossaryTermsViaCsvByGlossaryName");
7352switch (message.Response.Status)
7355return message.Response;
7357throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
7362return message.Response;
7408switch (message.Response.Status)
7411return message.Response;
7413throw _clientDiagnostics.CreateRequestFailedException(message.Response);
7418return message.Response;
7463switch (message.Response.Status)
7466return message.Response;
7468throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
7473return message.Response;
7502switch (message.Response.Status)
7505return message.Response;
7507throw _clientDiagnostics.CreateRequestFailedException(message.Response);
7512return message.Response;
7669switch (message.Response.Status)
7672return message.Response;
7674throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
7679return message.Response;
7813switch (message.Response.Status)
7816return message.Response;
7818throw _clientDiagnostics.CreateRequestFailedException(message.Response);
7823return message.Response;
Azure.Analytics.Purview.Scanning (310)
Azure.Analytics.Synapse.AccessControl (66)
Generated\RoleAssignmentsRestClient.cs (40)
84switch (message.Response.Status)
89using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
91return Response.FromValue(value, message.Response);
94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
121switch (message.Response.Status)
126using var document = JsonDocument.Parse(message.Response.ContentStream);
128return Response.FromValue(value, message.Response);
131throw _clientDiagnostics.CreateRequestFailedException(message.Response);
175var headers = new RoleAssignmentsListRoleAssignmentsHeaders(message.Response);
176switch (message.Response.Status)
181using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
183return ResponseWithHeaders.FromValue(value, headers, message.Response);
186throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
200var headers = new RoleAssignmentsListRoleAssignmentsHeaders(message.Response);
201switch (message.Response.Status)
206using var document = JsonDocument.Parse(message.Response.ContentStream);
208return ResponseWithHeaders.FromValue(value, headers, message.Response);
211throw _clientDiagnostics.CreateRequestFailedException(message.Response);
259switch (message.Response.Status)
264using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
266return Response.FromValue(value, message.Response);
269throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
294switch (message.Response.Status)
299using var document = JsonDocument.Parse(message.Response.ContentStream);
301return Response.FromValue(value, message.Response);
304throw _clientDiagnostics.CreateRequestFailedException(message.Response);
336switch (message.Response.Status)
341using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
343return Response.FromValue(value, message.Response);
346throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
363switch (message.Response.Status)
368using var document = JsonDocument.Parse(message.Response.ContentStream);
370return Response.FromValue(value, message.Response);
373throw _clientDiagnostics.CreateRequestFailedException(message.Response);
410switch (message.Response.Status)
414return message.Response;
416throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
434switch (message.Response.Status)
438return message.Response;
440throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RoleDefinitionsRestClient.cs (24)
71switch (message.Response.Status)
76using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
83return Response.FromValue(value, message.Response);
86throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
98switch (message.Response.Status)
103using var document = JsonDocument.Parse(message.Response.ContentStream);
110return Response.FromValue(value, message.Response);
113throw _clientDiagnostics.CreateRequestFailedException(message.Response);
145switch (message.Response.Status)
150using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
152return Response.FromValue(value, message.Response);
155throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
172switch (message.Response.Status)
177using var document = JsonDocument.Parse(message.Response.ContentStream);
179return Response.FromValue(value, message.Response);
182throw _clientDiagnostics.CreateRequestFailedException(message.Response);
206switch (message.Response.Status)
211using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
218return Response.FromValue(value, message.Response);
221throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
231switch (message.Response.Status)
236using var document = JsonDocument.Parse(message.Response.ContentStream);
243return Response.FromValue(value, message.Response);
246throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Azure.Analytics.Synapse.Artifacts (636)
Generated\DataFlowDebugSessionRestClient.cs (46)
71var headers = new DataFlowDebugSessionCreateDataFlowDebugSessionHeaders(message.Response);
72switch (message.Response.Status)
76return ResponseWithHeaders.FromValue(headers, message.Response);
78throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
95var headers = new DataFlowDebugSessionCreateDataFlowDebugSessionHeaders(message.Response);
96switch (message.Response.Status)
100return ResponseWithHeaders.FromValue(headers, message.Response);
102throw _clientDiagnostics.CreateRequestFailedException(message.Response);
126switch (message.Response.Status)
131using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
133return Response.FromValue(value, message.Response);
136throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
146switch (message.Response.Status)
151using var document = JsonDocument.Parse(message.Response.ContentStream);
153return Response.FromValue(value, message.Response);
156throw _clientDiagnostics.CreateRequestFailedException(message.Response);
191switch (message.Response.Status)
196using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
198return Response.FromValue(value, message.Response);
201throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
218switch (message.Response.Status)
223using var document = JsonDocument.Parse(message.Response.ContentStream);
225return Response.FromValue(value, message.Response);
228throw _clientDiagnostics.CreateRequestFailedException(message.Response);
263switch (message.Response.Status)
266return message.Response;
268throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
285switch (message.Response.Status)
288return message.Response;
290throw _clientDiagnostics.CreateRequestFailedException(message.Response);
325var headers = new DataFlowDebugSessionExecuteCommandHeaders(message.Response);
326switch (message.Response.Status)
330return ResponseWithHeaders.FromValue(headers, message.Response);
332throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
349var headers = new DataFlowDebugSessionExecuteCommandHeaders(message.Response);
350switch (message.Response.Status)
354return ResponseWithHeaders.FromValue(headers, message.Response);
356throw _clientDiagnostics.CreateRequestFailedException(message.Response);
386switch (message.Response.Status)
391using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
393return Response.FromValue(value, message.Response);
396throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
413switch (message.Response.Status)
418using var document = JsonDocument.Parse(message.Response.ContentStream);
420return Response.FromValue(value, message.Response);
423throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\DataFlowRestClient.cs (42)
82switch (message.Response.Status)
86return message.Response;
88throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
111switch (message.Response.Status)
115return message.Response;
117throw _clientDiagnostics.CreateRequestFailedException(message.Response);
154switch (message.Response.Status)
159using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
161return Response.FromValue(value, message.Response);
164throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
182switch (message.Response.Status)
187using var document = JsonDocument.Parse(message.Response.ContentStream);
189return Response.FromValue(value, message.Response);
192throw _clientDiagnostics.CreateRequestFailedException(message.Response);
224switch (message.Response.Status)
229return message.Response;
231throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
248switch (message.Response.Status)
253return message.Response;
255throw _clientDiagnostics.CreateRequestFailedException(message.Response);
297switch (message.Response.Status)
301return message.Response;
303throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
325switch (message.Response.Status)
329return message.Response;
331throw _clientDiagnostics.CreateRequestFailedException(message.Response);
355switch (message.Response.Status)
360using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
362return Response.FromValue(value, message.Response);
365throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
375switch (message.Response.Status)
380using var document = JsonDocument.Parse(message.Response.ContentStream);
382return Response.FromValue(value, message.Response);
385throw _clientDiagnostics.CreateRequestFailedException(message.Response);
415switch (message.Response.Status)
420using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
422return Response.FromValue(value, message.Response);
425throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
442switch (message.Response.Status)
447using var document = JsonDocument.Parse(message.Response.ContentStream);
449return Response.FromValue(value, message.Response);
452throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\DatasetRestClient.cs (44)
60switch (message.Response.Status)
65using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
67return Response.FromValue(value, message.Response);
70throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
80switch (message.Response.Status)
85using var document = JsonDocument.Parse(message.Response.ContentStream);
87return Response.FromValue(value, message.Response);
90throw _clientDiagnostics.CreateRequestFailedException(message.Response);
136switch (message.Response.Status)
140return message.Response;
142throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
165switch (message.Response.Status)
169return message.Response;
171throw _clientDiagnostics.CreateRequestFailedException(message.Response);
208switch (message.Response.Status)
213using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
215return Response.FromValue(value, message.Response);
218return Response.FromValue((DatasetResource)null, message.Response);
220throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
238switch (message.Response.Status)
243using var document = JsonDocument.Parse(message.Response.ContentStream);
245return Response.FromValue(value, message.Response);
248return Response.FromValue((DatasetResource)null, message.Response);
250throw _clientDiagnostics.CreateRequestFailedException(message.Response);
282switch (message.Response.Status)
287return message.Response;
289throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
306switch (message.Response.Status)
311return message.Response;
313throw _clientDiagnostics.CreateRequestFailedException(message.Response);
355switch (message.Response.Status)
359return message.Response;
361throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
383switch (message.Response.Status)
387return message.Response;
389throw _clientDiagnostics.CreateRequestFailedException(message.Response);
419switch (message.Response.Status)
424using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
426return Response.FromValue(value, message.Response);
429throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
446switch (message.Response.Status)
451using var document = JsonDocument.Parse(message.Response.ContentStream);
453return Response.FromValue(value, message.Response);
456throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\LibraryRestClient.cs (62)
61switch (message.Response.Status)
66using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
68return Response.FromValue(value, message.Response);
71throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
81switch (message.Response.Status)
86using var document = JsonDocument.Parse(message.Response.ContentStream);
88return Response.FromValue(value, message.Response);
91throw _clientDiagnostics.CreateRequestFailedException(message.Response);
124switch (message.Response.Status)
128return message.Response;
130throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
147switch (message.Response.Status)
151return message.Response;
153throw _clientDiagnostics.CreateRequestFailedException(message.Response);
185switch (message.Response.Status)
190using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
192return Response.FromValue<object>(value, message.Response);
197using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
199return Response.FromValue<object>(value, message.Response);
202throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
219switch (message.Response.Status)
224using var document = JsonDocument.Parse(message.Response.ContentStream);
226return Response.FromValue<object>(value, message.Response);
231using var document = JsonDocument.Parse(message.Response.ContentStream);
233return Response.FromValue<object>(value, message.Response);
236throw _clientDiagnostics.CreateRequestFailedException(message.Response);
268switch (message.Response.Status)
273return message.Response;
275throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
292switch (message.Response.Status)
297return message.Response;
299throw _clientDiagnostics.CreateRequestFailedException(message.Response);
331switch (message.Response.Status)
336using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
338return Response.FromValue(value, message.Response);
341return Response.FromValue((LibraryResource)null, message.Response);
343throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
360switch (message.Response.Status)
365using var document = JsonDocument.Parse(message.Response.ContentStream);
367return Response.FromValue(value, message.Response);
370return Response.FromValue((LibraryResource)null, message.Response);
372throw _clientDiagnostics.CreateRequestFailedException(message.Response);
404switch (message.Response.Status)
408return message.Response;
410throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
427switch (message.Response.Status)
431return message.Response;
433throw _clientDiagnostics.CreateRequestFailedException(message.Response);
478switch (message.Response.Status)
481return message.Response;
483throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
506switch (message.Response.Status)
509return message.Response;
511throw _clientDiagnostics.CreateRequestFailedException(message.Response);
541switch (message.Response.Status)
546using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
548return Response.FromValue(value, message.Response);
551throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
568switch (message.Response.Status)
573using var document = JsonDocument.Parse(message.Response.ContentStream);
575return Response.FromValue(value, message.Response);
578throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\LinkedServiceRestClient.cs (44)
60switch (message.Response.Status)
65using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
67return Response.FromValue(value, message.Response);
70throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
80switch (message.Response.Status)
85using var document = JsonDocument.Parse(message.Response.ContentStream);
87return Response.FromValue(value, message.Response);
90throw _clientDiagnostics.CreateRequestFailedException(message.Response);
136switch (message.Response.Status)
140return message.Response;
142throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
165switch (message.Response.Status)
169return message.Response;
171throw _clientDiagnostics.CreateRequestFailedException(message.Response);
208switch (message.Response.Status)
213using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
215return Response.FromValue(value, message.Response);
218return Response.FromValue((LinkedServiceResource)null, message.Response);
220throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
238switch (message.Response.Status)
243using var document = JsonDocument.Parse(message.Response.ContentStream);
245return Response.FromValue(value, message.Response);
248return Response.FromValue((LinkedServiceResource)null, message.Response);
250throw _clientDiagnostics.CreateRequestFailedException(message.Response);
282switch (message.Response.Status)
287return message.Response;
289throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
306switch (message.Response.Status)
311return message.Response;
313throw _clientDiagnostics.CreateRequestFailedException(message.Response);
355switch (message.Response.Status)
359return message.Response;
361throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
383switch (message.Response.Status)
387return message.Response;
389throw _clientDiagnostics.CreateRequestFailedException(message.Response);
419switch (message.Response.Status)
424using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
426return Response.FromValue(value, message.Response);
429throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
446switch (message.Response.Status)
451using var document = JsonDocument.Parse(message.Response.ContentStream);
453return Response.FromValue(value, message.Response);
456throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\NotebookRestClient.cs (60)
60switch (message.Response.Status)
65using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
67return Response.FromValue(value, message.Response);
70throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
80switch (message.Response.Status)
85using var document = JsonDocument.Parse(message.Response.ContentStream);
87return Response.FromValue(value, message.Response);
90throw _clientDiagnostics.CreateRequestFailedException(message.Response);
114switch (message.Response.Status)
119using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
121return Response.FromValue(value, message.Response);
124throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
134switch (message.Response.Status)
139using var document = JsonDocument.Parse(message.Response.ContentStream);
141return Response.FromValue(value, message.Response);
144throw _clientDiagnostics.CreateRequestFailedException(message.Response);
190switch (message.Response.Status)
194return message.Response;
196throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
219switch (message.Response.Status)
223return message.Response;
225throw _clientDiagnostics.CreateRequestFailedException(message.Response);
262switch (message.Response.Status)
267using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
269return Response.FromValue(value, message.Response);
272return Response.FromValue((NotebookResource)null, message.Response);
274throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
292switch (message.Response.Status)
297using var document = JsonDocument.Parse(message.Response.ContentStream);
299return Response.FromValue(value, message.Response);
302return Response.FromValue((NotebookResource)null, message.Response);
304throw _clientDiagnostics.CreateRequestFailedException(message.Response);
336switch (message.Response.Status)
341return message.Response;
343throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
360switch (message.Response.Status)
365return message.Response;
367throw _clientDiagnostics.CreateRequestFailedException(message.Response);
409switch (message.Response.Status)
413return message.Response;
415throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
437switch (message.Response.Status)
441return message.Response;
443throw _clientDiagnostics.CreateRequestFailedException(message.Response);
473switch (message.Response.Status)
478using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
480return Response.FromValue(value, message.Response);
483throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
500switch (message.Response.Status)
505using var document = JsonDocument.Parse(message.Response.ContentStream);
507return Response.FromValue(value, message.Response);
510throw _clientDiagnostics.CreateRequestFailedException(message.Response);
540switch (message.Response.Status)
545using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
547return Response.FromValue(value, message.Response);
550throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
567switch (message.Response.Status)
572using var document = JsonDocument.Parse(message.Response.ContentStream);
574return Response.FromValue(value, message.Response);
577throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\PipelineRestClient.cs (52)
61switch (message.Response.Status)
66using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
68return Response.FromValue(value, message.Response);
71throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
81switch (message.Response.Status)
86using var document = JsonDocument.Parse(message.Response.ContentStream);
88return Response.FromValue(value, message.Response);
91throw _clientDiagnostics.CreateRequestFailedException(message.Response);
137switch (message.Response.Status)
141return message.Response;
143throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
166switch (message.Response.Status)
170return message.Response;
172throw _clientDiagnostics.CreateRequestFailedException(message.Response);
209switch (message.Response.Status)
214using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
216return Response.FromValue(value, message.Response);
219return Response.FromValue((PipelineResource)null, message.Response);
221throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
239switch (message.Response.Status)
244using var document = JsonDocument.Parse(message.Response.ContentStream);
246return Response.FromValue(value, message.Response);
249return Response.FromValue((PipelineResource)null, message.Response);
251throw _clientDiagnostics.CreateRequestFailedException(message.Response);
283switch (message.Response.Status)
288return message.Response;
290throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
307switch (message.Response.Status)
312return message.Response;
314throw _clientDiagnostics.CreateRequestFailedException(message.Response);
356switch (message.Response.Status)
360return message.Response;
362throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
384switch (message.Response.Status)
388return message.Response;
390throw _clientDiagnostics.CreateRequestFailedException(message.Response);
452switch (message.Response.Status)
457using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
459return Response.FromValue(value, message.Response);
462throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
483switch (message.Response.Status)
488using var document = JsonDocument.Parse(message.Response.ContentStream);
490return Response.FromValue(value, message.Response);
493throw _clientDiagnostics.CreateRequestFailedException(message.Response);
523switch (message.Response.Status)
528using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
530return Response.FromValue(value, message.Response);
533throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
550switch (message.Response.Status)
555using var document = JsonDocument.Parse(message.Response.ContentStream);
557return Response.FromValue(value, message.Response);
560throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\PipelineRunRestClient.cs (30)
71switch (message.Response.Status)
76using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
78return Response.FromValue(value, message.Response);
81throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
98switch (message.Response.Status)
103using var document = JsonDocument.Parse(message.Response.ContentStream);
105return Response.FromValue(value, message.Response);
108throw _clientDiagnostics.CreateRequestFailedException(message.Response);
140switch (message.Response.Status)
145using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
147return Response.FromValue(value, message.Response);
150throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
167switch (message.Response.Status)
172using var document = JsonDocument.Parse(message.Response.ContentStream);
174return Response.FromValue(value, message.Response);
177throw _clientDiagnostics.CreateRequestFailedException(message.Response);
226switch (message.Response.Status)
231using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
233return Response.FromValue(value, message.Response);
236throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
263switch (message.Response.Status)
268using var document = JsonDocument.Parse(message.Response.ContentStream);
270return Response.FromValue(value, message.Response);
273throw _clientDiagnostics.CreateRequestFailedException(message.Response);
311switch (message.Response.Status)
314return message.Response;
316throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
334switch (message.Response.Status)
337return message.Response;
339throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\SparkJobDefinitionRestClient.cs (56)
60switch (message.Response.Status)
65using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
67return Response.FromValue(value, message.Response);
70throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
80switch (message.Response.Status)
85using var document = JsonDocument.Parse(message.Response.ContentStream);
87return Response.FromValue(value, message.Response);
90throw _clientDiagnostics.CreateRequestFailedException(message.Response);
136switch (message.Response.Status)
140return message.Response;
142throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
165switch (message.Response.Status)
169return message.Response;
171throw _clientDiagnostics.CreateRequestFailedException(message.Response);
208switch (message.Response.Status)
213using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
215return Response.FromValue(value, message.Response);
218return Response.FromValue((SparkJobDefinitionResource)null, message.Response);
220throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
238switch (message.Response.Status)
243using var document = JsonDocument.Parse(message.Response.ContentStream);
245return Response.FromValue(value, message.Response);
248return Response.FromValue((SparkJobDefinitionResource)null, message.Response);
250throw _clientDiagnostics.CreateRequestFailedException(message.Response);
282switch (message.Response.Status)
287return message.Response;
289throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
306switch (message.Response.Status)
311return message.Response;
313throw _clientDiagnostics.CreateRequestFailedException(message.Response);
346switch (message.Response.Status)
350return message.Response;
352throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
369switch (message.Response.Status)
373return message.Response;
375throw _clientDiagnostics.CreateRequestFailedException(message.Response);
417switch (message.Response.Status)
421return message.Response;
423throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
445switch (message.Response.Status)
449return message.Response;
451throw _clientDiagnostics.CreateRequestFailedException(message.Response);
486switch (message.Response.Status)
490return message.Response;
492throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
509switch (message.Response.Status)
513return message.Response;
515throw _clientDiagnostics.CreateRequestFailedException(message.Response);
545switch (message.Response.Status)
550using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
552return Response.FromValue(value, message.Response);
555throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
572switch (message.Response.Status)
577using var document = JsonDocument.Parse(message.Response.ContentStream);
579return Response.FromValue(value, message.Response);
582throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\SqlScriptRestClient.cs (44)
60switch (message.Response.Status)
65using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
67return Response.FromValue(value, message.Response);
70throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
80switch (message.Response.Status)
85using var document = JsonDocument.Parse(message.Response.ContentStream);
87return Response.FromValue(value, message.Response);
90throw _clientDiagnostics.CreateRequestFailedException(message.Response);
136switch (message.Response.Status)
140return message.Response;
142throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
165switch (message.Response.Status)
169return message.Response;
171throw _clientDiagnostics.CreateRequestFailedException(message.Response);
208switch (message.Response.Status)
213using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
215return Response.FromValue(value, message.Response);
218return Response.FromValue((SqlScriptResource)null, message.Response);
220throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
238switch (message.Response.Status)
243using var document = JsonDocument.Parse(message.Response.ContentStream);
245return Response.FromValue(value, message.Response);
248return Response.FromValue((SqlScriptResource)null, message.Response);
250throw _clientDiagnostics.CreateRequestFailedException(message.Response);
282switch (message.Response.Status)
287return message.Response;
289throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
306switch (message.Response.Status)
311return message.Response;
313throw _clientDiagnostics.CreateRequestFailedException(message.Response);
355switch (message.Response.Status)
359return message.Response;
361throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
383switch (message.Response.Status)
387return message.Response;
389throw _clientDiagnostics.CreateRequestFailedException(message.Response);
419switch (message.Response.Status)
424using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
426return Response.FromValue(value, message.Response);
429throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
446switch (message.Response.Status)
451using var document = JsonDocument.Parse(message.Response.ContentStream);
453return Response.FromValue(value, message.Response);
456throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\TriggerRestClient.cs (70)
60switch (message.Response.Status)
65using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
67return Response.FromValue(value, message.Response);
70throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
80switch (message.Response.Status)
85using var document = JsonDocument.Parse(message.Response.ContentStream);
87return Response.FromValue(value, message.Response);
90throw _clientDiagnostics.CreateRequestFailedException(message.Response);
136switch (message.Response.Status)
140return message.Response;
142throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
165switch (message.Response.Status)
169return message.Response;
171throw _clientDiagnostics.CreateRequestFailedException(message.Response);
208switch (message.Response.Status)
213using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
215return Response.FromValue(value, message.Response);
218return Response.FromValue((TriggerResource)null, message.Response);
220throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
238switch (message.Response.Status)
243using var document = JsonDocument.Parse(message.Response.ContentStream);
245return Response.FromValue(value, message.Response);
248return Response.FromValue((TriggerResource)null, message.Response);
250throw _clientDiagnostics.CreateRequestFailedException(message.Response);
282switch (message.Response.Status)
287return message.Response;
289throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
306switch (message.Response.Status)
311return message.Response;
313throw _clientDiagnostics.CreateRequestFailedException(message.Response);
346switch (message.Response.Status)
350return message.Response;
352throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
369switch (message.Response.Status)
373return message.Response;
375throw _clientDiagnostics.CreateRequestFailedException(message.Response);
408switch (message.Response.Status)
413using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
415return Response.FromValue(value, message.Response);
418throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
435switch (message.Response.Status)
440using var document = JsonDocument.Parse(message.Response.ContentStream);
442return Response.FromValue(value, message.Response);
445throw _clientDiagnostics.CreateRequestFailedException(message.Response);
478switch (message.Response.Status)
482return message.Response;
484throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
501switch (message.Response.Status)
505return message.Response;
507throw _clientDiagnostics.CreateRequestFailedException(message.Response);
540switch (message.Response.Status)
543return message.Response;
545throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
562switch (message.Response.Status)
565return message.Response;
567throw _clientDiagnostics.CreateRequestFailedException(message.Response);
600switch (message.Response.Status)
603return message.Response;
605throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
622switch (message.Response.Status)
625return message.Response;
627throw _clientDiagnostics.CreateRequestFailedException(message.Response);
657switch (message.Response.Status)
662using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
664return Response.FromValue(value, message.Response);
667throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
684switch (message.Response.Status)
689using var document = JsonDocument.Parse(message.Response.ContentStream);
691return Response.FromValue(value, message.Response);
694throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Azure.Analytics.Synapse.ManagedPrivateEndpoints (40)
Generated\ManagedPrivateEndpointsRestClient.cs (38)
75switch (message.Response.Status)
80using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
82return Response.FromValue(value, message.Response);
85throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
107switch (message.Response.Status)
112using var document = JsonDocument.Parse(message.Response.ContentStream);
114return Response.FromValue(value, message.Response);
117throw _clientDiagnostics.CreateRequestFailedException(message.Response);
165switch (message.Response.Status)
170using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
172return Response.FromValue(value, message.Response);
175throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
202switch (message.Response.Status)
207using var document = JsonDocument.Parse(message.Response.ContentStream);
209return Response.FromValue(value, message.Response);
212throw _clientDiagnostics.CreateRequestFailedException(message.Response);
250switch (message.Response.Status)
254return message.Response;
256throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
278switch (message.Response.Status)
282return message.Response;
284throw _clientDiagnostics.CreateRequestFailedException(message.Response);
317switch (message.Response.Status)
322using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
324return Response.FromValue(value, message.Response);
327throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
344switch (message.Response.Status)
349using var document = JsonDocument.Parse(message.Response.ContentStream);
351return Response.FromValue(value, message.Response);
354throw _clientDiagnostics.CreateRequestFailedException(message.Response);
389switch (message.Response.Status)
394using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
396return Response.FromValue(value, message.Response);
399throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
421switch (message.Response.Status)
426using var document = JsonDocument.Parse(message.Response.ContentStream);
428return Response.FromValue(value, message.Response);
431throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Azure.Analytics.Synapse.Monitoring (18)
Azure.Analytics.Synapse.Spark (100)
Generated\SparkBatchRestClient.cs (30)
84switch (message.Response.Status)
89using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
91return Response.FromValue(value, message.Response);
94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
110switch (message.Response.Status)
115using var document = JsonDocument.Parse(message.Response.ContentStream);
117return Response.FromValue(value, message.Response);
120throw _clientDiagnostics.CreateRequestFailedException(message.Response);
163switch (message.Response.Status)
168using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
170return Response.FromValue(value, message.Response);
173throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
191switch (message.Response.Status)
196using var document = JsonDocument.Parse(message.Response.ContentStream);
198return Response.FromValue(value, message.Response);
201throw _clientDiagnostics.CreateRequestFailedException(message.Response);
235switch (message.Response.Status)
240using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
242return Response.FromValue(value, message.Response);
245throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
257switch (message.Response.Status)
262using var document = JsonDocument.Parse(message.Response.ContentStream);
264return Response.FromValue(value, message.Response);
267throw _clientDiagnostics.CreateRequestFailedException(message.Response);
295switch (message.Response.Status)
298return message.Response;
300throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
311switch (message.Response.Status)
314return message.Response;
316throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\SparkSessionRestClient.cs (68)
84switch (message.Response.Status)
89using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
91return Response.FromValue(value, message.Response);
94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
110switch (message.Response.Status)
115using var document = JsonDocument.Parse(message.Response.ContentStream);
117return Response.FromValue(value, message.Response);
120throw _clientDiagnostics.CreateRequestFailedException(message.Response);
163switch (message.Response.Status)
168using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
170return Response.FromValue(value, message.Response);
173throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
191switch (message.Response.Status)
196using var document = JsonDocument.Parse(message.Response.ContentStream);
198return Response.FromValue(value, message.Response);
201throw _clientDiagnostics.CreateRequestFailedException(message.Response);
235switch (message.Response.Status)
240using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
242return Response.FromValue(value, message.Response);
245throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
257switch (message.Response.Status)
262using var document = JsonDocument.Parse(message.Response.ContentStream);
264return Response.FromValue(value, message.Response);
267throw _clientDiagnostics.CreateRequestFailedException(message.Response);
295switch (message.Response.Status)
298return message.Response;
300throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
311switch (message.Response.Status)
314return message.Response;
316throw _clientDiagnostics.CreateRequestFailedException(message.Response);
345switch (message.Response.Status)
348return message.Response;
350throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
361switch (message.Response.Status)
364return message.Response;
366throw _clientDiagnostics.CreateRequestFailedException(message.Response);
396switch (message.Response.Status)
401using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
403return Response.FromValue(value, message.Response);
406throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
417switch (message.Response.Status)
422using var document = JsonDocument.Parse(message.Response.ContentStream);
424return Response.FromValue(value, message.Response);
427throw _clientDiagnostics.CreateRequestFailedException(message.Response);
468switch (message.Response.Status)
473using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
475return Response.FromValue(value, message.Response);
478throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
496switch (message.Response.Status)
501using var document = JsonDocument.Parse(message.Response.ContentStream);
503return Response.FromValue(value, message.Response);
506throw _clientDiagnostics.CreateRequestFailedException(message.Response);
538switch (message.Response.Status)
543using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
545return Response.FromValue(value, message.Response);
548throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
560switch (message.Response.Status)
565using var document = JsonDocument.Parse(message.Response.ContentStream);
567return Response.FromValue(value, message.Response);
570throw _clientDiagnostics.CreateRequestFailedException(message.Response);
603switch (message.Response.Status)
608using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
610return Response.FromValue(value, message.Response);
613throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
625switch (message.Response.Status)
630using var document = JsonDocument.Parse(message.Response.ContentStream);
632return Response.FromValue(value, message.Response);
635throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Azure.Communication.CallingServer (116)
Generated\CallConnectionsRestClient.cs (44)
107switch (message.Response.Status)
112using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
114return Response.FromValue(value, message.Response);
117throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
148switch (message.Response.Status)
153using var document = JsonDocument.Parse(message.Response.ContentStream);
155return Response.FromValue(value, message.Response);
158throw _clientDiagnostics.CreateRequestFailedException(message.Response);
191switch (message.Response.Status)
194return message.Response;
196throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
213switch (message.Response.Status)
216return message.Response;
218throw _clientDiagnostics.CreateRequestFailedException(message.Response);
273switch (message.Response.Status)
278using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
280return Response.FromValue(value, message.Response);
283throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
310switch (message.Response.Status)
315using var document = JsonDocument.Parse(message.Response.ContentStream);
317return Response.FromValue(value, message.Response);
320throw _clientDiagnostics.CreateRequestFailedException(message.Response);
362switch (message.Response.Status)
367using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
369return Response.FromValue(value, message.Response);
372throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
390switch (message.Response.Status)
395using var document = JsonDocument.Parse(message.Response.ContentStream);
397return Response.FromValue(value, message.Response);
400throw _clientDiagnostics.CreateRequestFailedException(message.Response);
448switch (message.Response.Status)
453using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
455return Response.FromValue(value, message.Response);
458throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
479switch (message.Response.Status)
484using var document = JsonDocument.Parse(message.Response.ContentStream);
486return Response.FromValue(value, message.Response);
489throw _clientDiagnostics.CreateRequestFailedException(message.Response);
528switch (message.Response.Status)
531return message.Response;
533throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
555switch (message.Response.Status)
558return message.Response;
560throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ServerCallsRestClient.cs (64)
85switch (message.Response.Status)
90using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
92return Response.FromValue(value, message.Response);
95throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
116switch (message.Response.Status)
121using var document = JsonDocument.Parse(message.Response.ContentStream);
123return Response.FromValue(value, message.Response);
126throw _clientDiagnostics.CreateRequestFailedException(message.Response);
165switch (message.Response.Status)
168return message.Response;
170throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
192switch (message.Response.Status)
195return message.Response;
197throw _clientDiagnostics.CreateRequestFailedException(message.Response);
245switch (message.Response.Status)
250using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
252return Response.FromValue(value, message.Response);
255throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
276switch (message.Response.Status)
281using var document = JsonDocument.Parse(message.Response.ContentStream);
283return Response.FromValue(value, message.Response);
286throw _clientDiagnostics.CreateRequestFailedException(message.Response);
325switch (message.Response.Status)
330using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
332return Response.FromValue(value, message.Response);
335throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
357switch (message.Response.Status)
362using var document = JsonDocument.Parse(message.Response.ContentStream);
364return Response.FromValue(value, message.Response);
367throw _clientDiagnostics.CreateRequestFailedException(message.Response);
406switch (message.Response.Status)
409return message.Response;
411throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
433switch (message.Response.Status)
436return message.Response;
438throw _clientDiagnostics.CreateRequestFailedException(message.Response);
478switch (message.Response.Status)
481return message.Response;
483throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
505switch (message.Response.Status)
508return message.Response;
510throw _clientDiagnostics.CreateRequestFailedException(message.Response);
550switch (message.Response.Status)
553return message.Response;
555throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
577switch (message.Response.Status)
580return message.Response;
582throw _clientDiagnostics.CreateRequestFailedException(message.Response);
651switch (message.Response.Status)
656using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
658return Response.FromValue(value, message.Response);
661throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
691switch (message.Response.Status)
696using var document = JsonDocument.Parse(message.Response.ContentStream);
698return Response.FromValue(value, message.Response);
701throw _clientDiagnostics.CreateRequestFailedException(message.Response);
756switch (message.Response.Status)
761using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
763return Response.FromValue(value, message.Response);
766throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
793switch (message.Response.Status)
798using var document = JsonDocument.Parse(message.Response.ContentStream);
800return Response.FromValue(value, message.Response);
803throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Azure.Communication.Chat (148)
Generated\ChatRestClient.cs (30)
86switch (message.Response.Status)
91using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
93return Response.FromValue(value, message.Response);
96throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
115switch (message.Response.Status)
120using var document = JsonDocument.Parse(message.Response.ContentStream);
122return Response.FromValue(value, message.Response);
125throw _clientDiagnostics.CreateRequestFailedException(message.Response);
159switch (message.Response.Status)
164using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
166return Response.FromValue(value, message.Response);
169throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
181switch (message.Response.Status)
186using var document = JsonDocument.Parse(message.Response.ContentStream);
188return Response.FromValue(value, message.Response);
191throw _clientDiagnostics.CreateRequestFailedException(message.Response);
223switch (message.Response.Status)
226return message.Response;
228throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
245switch (message.Response.Status)
248return message.Response;
250throw _clientDiagnostics.CreateRequestFailedException(message.Response);
282switch (message.Response.Status)
287using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
289return Response.FromValue(value, message.Response);
292throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
311switch (message.Response.Status)
316using var document = JsonDocument.Parse(message.Response.ContentStream);
318return Response.FromValue(value, message.Response);
321throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ChatThreadRestClient.cs (116)
81switch (message.Response.Status)
86using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
88return Response.FromValue(value, message.Response);
91throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
110switch (message.Response.Status)
115using var document = JsonDocument.Parse(message.Response.ContentStream);
117return Response.FromValue(value, message.Response);
120throw _clientDiagnostics.CreateRequestFailedException(message.Response);
163switch (message.Response.Status)
166return message.Response;
168throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
190switch (message.Response.Status)
193return message.Response;
195throw _clientDiagnostics.CreateRequestFailedException(message.Response);
253switch (message.Response.Status)
258using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
260return Response.FromValue(value, message.Response);
263throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
288switch (message.Response.Status)
293using var document = JsonDocument.Parse(message.Response.ContentStream);
295return Response.FromValue(value, message.Response);
298throw _clientDiagnostics.CreateRequestFailedException(message.Response);
341switch (message.Response.Status)
346using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
348return Response.FromValue(value, message.Response);
351throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
370switch (message.Response.Status)
375using var document = JsonDocument.Parse(message.Response.ContentStream);
377return Response.FromValue(value, message.Response);
380throw _clientDiagnostics.CreateRequestFailedException(message.Response);
419switch (message.Response.Status)
424using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
426return Response.FromValue(value, message.Response);
429throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
451switch (message.Response.Status)
456using var document = JsonDocument.Parse(message.Response.ContentStream);
458return Response.FromValue(value, message.Response);
461throw _clientDiagnostics.CreateRequestFailedException(message.Response);
518switch (message.Response.Status)
521return message.Response;
523throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
547switch (message.Response.Status)
550return message.Response;
552throw _clientDiagnostics.CreateRequestFailedException(message.Response);
591switch (message.Response.Status)
594return message.Response;
596throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
618switch (message.Response.Status)
621return message.Response;
623throw _clientDiagnostics.CreateRequestFailedException(message.Response);
666switch (message.Response.Status)
671using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
673return Response.FromValue(value, message.Response);
676throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
695switch (message.Response.Status)
700using var document = JsonDocument.Parse(message.Response.ContentStream);
702return Response.FromValue(value, message.Response);
705throw _clientDiagnostics.CreateRequestFailedException(message.Response);
753switch (message.Response.Status)
756return message.Response;
758throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
779switch (message.Response.Status)
782return message.Response;
784throw _clientDiagnostics.CreateRequestFailedException(message.Response);
827switch (message.Response.Status)
832using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
834return Response.FromValue(value, message.Response);
837throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
859switch (message.Response.Status)
864using var document = JsonDocument.Parse(message.Response.ContentStream);
866return Response.FromValue(value, message.Response);
869throw _clientDiagnostics.CreateRequestFailedException(message.Response);
910switch (message.Response.Status)
913return message.Response;
915throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
933switch (message.Response.Status)
936return message.Response;
938throw _clientDiagnostics.CreateRequestFailedException(message.Response);
970switch (message.Response.Status)
975using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
977return Response.FromValue(value, message.Response);
980throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
997switch (message.Response.Status)
1002using var document = JsonDocument.Parse(message.Response.ContentStream);
1004return Response.FromValue(value, message.Response);
1007throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1049switch (message.Response.Status)
1052return message.Response;
1054throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1072switch (message.Response.Status)
1075return message.Response;
1077throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1114switch (message.Response.Status)
1119using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1121return Response.FromValue(value, message.Response);
1124throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1148switch (message.Response.Status)
1153using var document = JsonDocument.Parse(message.Response.ContentStream);
1155return Response.FromValue(value, message.Response);
1158throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1195switch (message.Response.Status)
1200using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1202return Response.FromValue(value, message.Response);
1205throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1229switch (message.Response.Status)
1234using var document = JsonDocument.Parse(message.Response.ContentStream);
1236return Response.FromValue(value, message.Response);
1239throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1276switch (message.Response.Status)
1281using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1283return Response.FromValue(value, message.Response);
1286throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1310switch (message.Response.Status)
1315using var document = JsonDocument.Parse(message.Response.ContentStream);
1317return Response.FromValue(value, message.Response);
1320throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Azure.Communication.Identity (38)
Generated\CommunicationIdentityRestClient.cs (36)
76switch (message.Response.Status)
81using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
83return Response.FromValue(value, message.Response);
86throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
97switch (message.Response.Status)
102using var document = JsonDocument.Parse(message.Response.ContentStream);
104return Response.FromValue(value, message.Response);
107throw _clientDiagnostics.CreateRequestFailedException(message.Response);
139switch (message.Response.Status)
142return message.Response;
144throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
161switch (message.Response.Status)
164return message.Response;
166throw _clientDiagnostics.CreateRequestFailedException(message.Response);
199switch (message.Response.Status)
202return message.Response;
204throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
221switch (message.Response.Status)
224return message.Response;
226throw _clientDiagnostics.CreateRequestFailedException(message.Response);
262switch (message.Response.Status)
267using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
269return Response.FromValue(value, message.Response);
272throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
289switch (message.Response.Status)
294using var document = JsonDocument.Parse(message.Response.ContentStream);
296return Response.FromValue(value, message.Response);
299throw _clientDiagnostics.CreateRequestFailedException(message.Response);
342switch (message.Response.Status)
347using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
349return Response.FromValue(value, message.Response);
352throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
374switch (message.Response.Status)
379using var document = JsonDocument.Parse(message.Response.ContentStream);
381return Response.FromValue(value, message.Response);
384throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Azure.Communication.NetworkTraversal (10)
Azure.Communication.PhoneNumbers (82)
Generated\InternalPhoneNumbersRestClient.cs (80)
77var headers = new PhoneNumbersSearchAvailablePhoneNumbersHeaders(message.Response);
78switch (message.Response.Status)
81return ResponseWithHeaders.FromValue(headers, message.Response);
83throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
105var headers = new PhoneNumbersSearchAvailablePhoneNumbersHeaders(message.Response);
106switch (message.Response.Status)
109return ResponseWithHeaders.FromValue(headers, message.Response);
111throw _clientDiagnostics.CreateRequestFailedException(message.Response);
143switch (message.Response.Status)
148using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
150return Response.FromValue(value, message.Response);
153throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
170switch (message.Response.Status)
175using var document = JsonDocument.Parse(message.Response.ContentStream);
177return Response.FromValue(value, message.Response);
180throw _clientDiagnostics.CreateRequestFailedException(message.Response);
213var headers = new PhoneNumbersPurchasePhoneNumbersHeaders(message.Response);
214switch (message.Response.Status)
217return ResponseWithHeaders.FromValue(headers, message.Response);
219throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
230var headers = new PhoneNumbersPurchasePhoneNumbersHeaders(message.Response);
231switch (message.Response.Status)
234return ResponseWithHeaders.FromValue(headers, message.Response);
236throw _clientDiagnostics.CreateRequestFailedException(message.Response);
268var headers = new PhoneNumbersGetOperationHeaders(message.Response);
269switch (message.Response.Status)
274using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
276return ResponseWithHeaders.FromValue(value, headers, message.Response);
279throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
296var headers = new PhoneNumbersGetOperationHeaders(message.Response);
297switch (message.Response.Status)
302using var document = JsonDocument.Parse(message.Response.ContentStream);
304return ResponseWithHeaders.FromValue(value, headers, message.Response);
307throw _clientDiagnostics.CreateRequestFailedException(message.Response);
339switch (message.Response.Status)
342return message.Response;
344throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
361switch (message.Response.Status)
364return message.Response;
366throw _clientDiagnostics.CreateRequestFailedException(message.Response);
410var headers = new PhoneNumbersUpdateCapabilitiesHeaders(message.Response);
411switch (message.Response.Status)
414return ResponseWithHeaders.FromValue(headers, message.Response);
416throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
435var headers = new PhoneNumbersUpdateCapabilitiesHeaders(message.Response);
436switch (message.Response.Status)
439return ResponseWithHeaders.FromValue(headers, message.Response);
441throw _clientDiagnostics.CreateRequestFailedException(message.Response);
473switch (message.Response.Status)
478using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
480return Response.FromValue(value, message.Response);
483throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
500switch (message.Response.Status)
505using var document = JsonDocument.Parse(message.Response.ContentStream);
507return Response.FromValue(value, message.Response);
510throw _clientDiagnostics.CreateRequestFailedException(message.Response);
542var headers = new PhoneNumbersReleasePhoneNumberHeaders(message.Response);
543switch (message.Response.Status)
546return ResponseWithHeaders.FromValue(headers, message.Response);
548throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
565var headers = new PhoneNumbersReleasePhoneNumberHeaders(message.Response);
566switch (message.Response.Status)
569return ResponseWithHeaders.FromValue(headers, message.Response);
571throw _clientDiagnostics.CreateRequestFailedException(message.Response);
605switch (message.Response.Status)
610using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
612return Response.FromValue(value, message.Response);
615throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
627switch (message.Response.Status)
632using var document = JsonDocument.Parse(message.Response.ContentStream);
634return Response.FromValue(value, message.Response);
637throw _clientDiagnostics.CreateRequestFailedException(message.Response);
669switch (message.Response.Status)
674using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
676return Response.FromValue(value, message.Response);
679throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
698switch (message.Response.Status)
703using var document = JsonDocument.Parse(message.Response.ContentStream);
705return Response.FromValue(value, message.Response);
708throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Azure.Communication.Sms (10)
Azure.Containers.ContainerRegistry (258)
Generated\ContainerRegistryBlobRestClient.cs (88)
70var headers = new ContainerRegistryBlobGetBlobHeaders(message.Response);
71switch (message.Response.Status)
76return ResponseWithHeaders.FromValue(value, headers, message.Response);
79return ResponseWithHeaders.FromValue((Stream)null, headers, message.Response);
81throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
103var headers = new ContainerRegistryBlobGetBlobHeaders(message.Response);
104switch (message.Response.Status)
109return ResponseWithHeaders.FromValue(value, headers, message.Response);
112return ResponseWithHeaders.FromValue((Stream)null, headers, message.Response);
114throw _clientDiagnostics.CreateRequestFailedException(message.Response);
152var headers = new ContainerRegistryBlobCheckBlobExistsHeaders(message.Response);
153switch (message.Response.Status)
157return ResponseWithHeaders.FromValue(headers, message.Response);
159throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
181var headers = new ContainerRegistryBlobCheckBlobExistsHeaders(message.Response);
182switch (message.Response.Status)
186return ResponseWithHeaders.FromValue(headers, message.Response);
188throw _clientDiagnostics.CreateRequestFailedException(message.Response);
226var headers = new ContainerRegistryBlobDeleteBlobHeaders(message.Response);
227switch (message.Response.Status)
232return ResponseWithHeaders.FromValue(value, headers, message.Response);
235throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
257var headers = new ContainerRegistryBlobDeleteBlobHeaders(message.Response);
258switch (message.Response.Status)
263return ResponseWithHeaders.FromValue(value, headers, message.Response);
266throw _clientDiagnostics.CreateRequestFailedException(message.Response);
310var headers = new ContainerRegistryBlobMountBlobHeaders(message.Response);
311switch (message.Response.Status)
314return ResponseWithHeaders.FromValue(headers, message.Response);
316throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
343var headers = new ContainerRegistryBlobMountBlobHeaders(message.Response);
344switch (message.Response.Status)
347return ResponseWithHeaders.FromValue(headers, message.Response);
349throw _clientDiagnostics.CreateRequestFailedException(message.Response);
380var headers = new ContainerRegistryBlobGetUploadStatusHeaders(message.Response);
381switch (message.Response.Status)
384return ResponseWithHeaders.FromValue(headers, message.Response);
386throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
403var headers = new ContainerRegistryBlobGetUploadStatusHeaders(message.Response);
404switch (message.Response.Status)
407return ResponseWithHeaders.FromValue(headers, message.Response);
409throw _clientDiagnostics.CreateRequestFailedException(message.Response);
447var headers = new ContainerRegistryBlobUploadChunkHeaders(message.Response);
448switch (message.Response.Status)
451return ResponseWithHeaders.FromValue(headers, message.Response);
453throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
475var headers = new ContainerRegistryBlobUploadChunkHeaders(message.Response);
476switch (message.Response.Status)
479return ResponseWithHeaders.FromValue(headers, message.Response);
481throw _clientDiagnostics.CreateRequestFailedException(message.Response);
524var headers = new ContainerRegistryBlobCompleteUploadHeaders(message.Response);
525switch (message.Response.Status)
528return ResponseWithHeaders.FromValue(headers, message.Response);
530throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
553var headers = new ContainerRegistryBlobCompleteUploadHeaders(message.Response);
554switch (message.Response.Status)
557return ResponseWithHeaders.FromValue(headers, message.Response);
559throw _clientDiagnostics.CreateRequestFailedException(message.Response);
590switch (message.Response.Status)
593return message.Response;
595throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
612switch (message.Response.Status)
615return message.Response;
617throw _clientDiagnostics.CreateRequestFailedException(message.Response);
649var headers = new ContainerRegistryBlobStartUploadHeaders(message.Response);
650switch (message.Response.Status)
653return ResponseWithHeaders.FromValue(headers, message.Response);
655throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
672var headers = new ContainerRegistryBlobStartUploadHeaders(message.Response);
673switch (message.Response.Status)
676return ResponseWithHeaders.FromValue(headers, message.Response);
678throw _clientDiagnostics.CreateRequestFailedException(message.Response);
722var headers = new ContainerRegistryBlobGetChunkHeaders(message.Response);
723switch (message.Response.Status)
728return ResponseWithHeaders.FromValue(value, headers, message.Response);
731throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
758var headers = new ContainerRegistryBlobGetChunkHeaders(message.Response);
759switch (message.Response.Status)
764return ResponseWithHeaders.FromValue(value, headers, message.Response);
767throw _clientDiagnostics.CreateRequestFailedException(message.Response);
811var headers = new ContainerRegistryBlobCheckChunkExistsHeaders(message.Response);
812switch (message.Response.Status)
815return ResponseWithHeaders.FromValue(headers, message.Response);
817throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
844var headers = new ContainerRegistryBlobCheckChunkExistsHeaders(message.Response);
845switch (message.Response.Status)
848return ResponseWithHeaders.FromValue(headers, message.Response);
850throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ContainerRegistryRestClient.cs (150)
55switch (message.Response.Status)
58return message.Response;
60throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
70switch (message.Response.Status)
73return message.Response;
75throw _clientDiagnostics.CreateRequestFailedException(message.Response);
118switch (message.Response.Status)
123using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
125return Response.FromValue(value, message.Response);
128throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
151switch (message.Response.Status)
156using var document = JsonDocument.Parse(message.Response.ContentStream);
158return Response.FromValue(value, message.Response);
161throw _clientDiagnostics.CreateRequestFailedException(message.Response);
208var headers = new ContainerRegistryCreateManifestHeaders(message.Response);
209switch (message.Response.Status)
214using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
216return ResponseWithHeaders.FromValue(value, headers, message.Response);
219throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
246var headers = new ContainerRegistryCreateManifestHeaders(message.Response);
247switch (message.Response.Status)
252using var document = JsonDocument.Parse(message.Response.ContentStream);
254return ResponseWithHeaders.FromValue(value, headers, message.Response);
257throw _clientDiagnostics.CreateRequestFailedException(message.Response);
295switch (message.Response.Status)
299return message.Response;
301throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
323switch (message.Response.Status)
327return message.Response;
329throw _clientDiagnostics.CreateRequestFailedException(message.Response);
362var headers = new ContainerRegistryGetRepositoriesHeaders(message.Response);
363switch (message.Response.Status)
368using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
370return ResponseWithHeaders.FromValue(value, headers, message.Response);
373throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
385var headers = new ContainerRegistryGetRepositoriesHeaders(message.Response);
386switch (message.Response.Status)
391using var document = JsonDocument.Parse(message.Response.ContentStream);
393return ResponseWithHeaders.FromValue(value, headers, message.Response);
396throw _clientDiagnostics.CreateRequestFailedException(message.Response);
427switch (message.Response.Status)
432using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
434return Response.FromValue(value, message.Response);
437throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
454switch (message.Response.Status)
459using var document = JsonDocument.Parse(message.Response.ContentStream);
461return Response.FromValue(value, message.Response);
464throw _clientDiagnostics.CreateRequestFailedException(message.Response);
495switch (message.Response.Status)
499return message.Response;
501throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
518switch (message.Response.Status)
522return message.Response;
524throw _clientDiagnostics.CreateRequestFailedException(message.Response);
563switch (message.Response.Status)
568using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
570return Response.FromValue(value0, message.Response);
573throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
591switch (message.Response.Status)
596using var document = JsonDocument.Parse(message.Response.ContentStream);
598return Response.FromValue(value0, message.Response);
601throw _clientDiagnostics.CreateRequestFailedException(message.Response);
653var headers = new ContainerRegistryGetTagsHeaders(message.Response);
654switch (message.Response.Status)
659using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
661return ResponseWithHeaders.FromValue(value, headers, message.Response);
664throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
685var headers = new ContainerRegistryGetTagsHeaders(message.Response);
686switch (message.Response.Status)
691using var document = JsonDocument.Parse(message.Response.ContentStream);
693return ResponseWithHeaders.FromValue(value, headers, message.Response);
696throw _clientDiagnostics.CreateRequestFailedException(message.Response);
734switch (message.Response.Status)
739using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
741return Response.FromValue(value, message.Response);
744throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
766switch (message.Response.Status)
771using var document = JsonDocument.Parse(message.Response.ContentStream);
773return Response.FromValue(value, message.Response);
776throw _clientDiagnostics.CreateRequestFailedException(message.Response);
822switch (message.Response.Status)
827using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
829return Response.FromValue(value0, message.Response);
832throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
855switch (message.Response.Status)
860using var document = JsonDocument.Parse(message.Response.ContentStream);
862return Response.FromValue(value0, message.Response);
865throw _clientDiagnostics.CreateRequestFailedException(message.Response);
903switch (message.Response.Status)
907return message.Response;
909throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
931switch (message.Response.Status)
935return message.Response;
937throw _clientDiagnostics.CreateRequestFailedException(message.Response);
984var headers = new ContainerRegistryGetManifestsHeaders(message.Response);
985switch (message.Response.Status)
990using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
992return ResponseWithHeaders.FromValue(value, headers, message.Response);
995throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1015var headers = new ContainerRegistryGetManifestsHeaders(message.Response);
1016switch (message.Response.Status)
1021using var document = JsonDocument.Parse(message.Response.ContentStream);
1023return ResponseWithHeaders.FromValue(value, headers, message.Response);
1026throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1064switch (message.Response.Status)
1069using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1071return Response.FromValue(value, message.Response);
1074throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1096switch (message.Response.Status)
1101using var document = JsonDocument.Parse(message.Response.ContentStream);
1103return Response.FromValue(value, message.Response);
1106throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1152switch (message.Response.Status)
1157using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1159return Response.FromValue(value0, message.Response);
1162throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1185switch (message.Response.Status)
1190using var document = JsonDocument.Parse(message.Response.ContentStream);
1192return Response.FromValue(value0, message.Response);
1195throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1227var headers = new ContainerRegistryGetRepositoriesHeaders(message.Response);
1228switch (message.Response.Status)
1233using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1235return ResponseWithHeaders.FromValue(value, headers, message.Response);
1238throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1257var headers = new ContainerRegistryGetRepositoriesHeaders(message.Response);
1258switch (message.Response.Status)
1263using var document = JsonDocument.Parse(message.Response.ContentStream);
1265return ResponseWithHeaders.FromValue(value, headers, message.Response);
1268throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1307var headers = new ContainerRegistryGetTagsHeaders(message.Response);
1308switch (message.Response.Status)
1313using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1315return ResponseWithHeaders.FromValue(value, headers, message.Response);
1318throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1344var headers = new ContainerRegistryGetTagsHeaders(message.Response);
1345switch (message.Response.Status)
1350using var document = JsonDocument.Parse(message.Response.ContentStream);
1352return ResponseWithHeaders.FromValue(value, headers, message.Response);
1355throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1393var headers = new ContainerRegistryGetManifestsHeaders(message.Response);
1394switch (message.Response.Status)
1399using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1401return ResponseWithHeaders.FromValue(value, headers, message.Response);
1404throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1429var headers = new ContainerRegistryGetManifestsHeaders(message.Response);
1430switch (message.Response.Status)
1435using var document = JsonDocument.Parse(message.Response.ContentStream);
1437return ResponseWithHeaders.FromValue(value, headers, message.Response);
1440throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Azure.Core (27)
Azure.Core.Experimental (1)
Azure.Core.Experimental.Tests (10)
Azure.Core.Perf (2)
Azure.Core.TestFramework (8)
Azure.Core.Tests (23)
Azure.Data.AppConfiguration (1)
Azure.Data.SchemaRegistry (32)
Generated\SchemaRestClient.cs (30)
69var headers = new SchemaGetByIdHeaders(message.Response);
70switch (message.Response.Status)
74StreamReader streamReader = new StreamReader(message.Response.ContentStream);
76return ResponseWithHeaders.FromValue(value, headers, message.Response);
79throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
96var headers = new SchemaGetByIdHeaders(message.Response);
97switch (message.Response.Status)
101StreamReader streamReader = new StreamReader(message.Response.ContentStream);
103return ResponseWithHeaders.FromValue(value, headers, message.Response);
106throw _clientDiagnostics.CreateRequestFailedException(message.Response);
155var headers = new SchemaQueryIdByContentHeaders(message.Response);
156switch (message.Response.Status)
161using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
163return ResponseWithHeaders.FromValue(value, headers, message.Response);
166throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
194var headers = new SchemaQueryIdByContentHeaders(message.Response);
195switch (message.Response.Status)
200using var document = JsonDocument.Parse(message.Response.ContentStream);
202return ResponseWithHeaders.FromValue(value, headers, message.Response);
205throw _clientDiagnostics.CreateRequestFailedException(message.Response);
257var headers = new SchemaRegisterHeaders(message.Response);
258switch (message.Response.Status)
263using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
265return ResponseWithHeaders.FromValue(value, headers, message.Response);
268throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
299var headers = new SchemaRegisterHeaders(message.Response);
300switch (message.Response.Status)
305using var document = JsonDocument.Parse(message.Response.ContentStream);
307return ResponseWithHeaders.FromValue(value, headers, message.Response);
310throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Azure.Data.Tables (163)
Generated\ServiceRestClient.cs (28)
77var headers = new ServiceSetPropertiesHeaders(message.Response);
78switch (message.Response.Status)
81return ResponseWithHeaders.FromValue(headers, message.Response);
83throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
101var headers = new ServiceSetPropertiesHeaders(message.Response);
102switch (message.Response.Status)
105return ResponseWithHeaders.FromValue(headers, message.Response);
107throw _clientDiagnostics.CreateRequestFailedException(message.Response);
138var headers = new ServiceGetPropertiesHeaders(message.Response);
139switch (message.Response.Status)
144var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
149return ResponseWithHeaders.FromValue(value, headers, message.Response);
152throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
163var headers = new ServiceGetPropertiesHeaders(message.Response);
164switch (message.Response.Status)
169var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
174return ResponseWithHeaders.FromValue(value, headers, message.Response);
177throw _clientDiagnostics.CreateRequestFailedException(message.Response);
208var headers = new ServiceGetStatisticsHeaders(message.Response);
209switch (message.Response.Status)
214var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
219return ResponseWithHeaders.FromValue(value, headers, message.Response);
222throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
233var headers = new ServiceGetStatisticsHeaders(message.Response);
234switch (message.Response.Status)
239var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
244return ResponseWithHeaders.FromValue(value, headers, message.Response);
247throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\TableRestClient.cs (104)
84var headers = new TableQueryHeaders(message.Response);
85switch (message.Response.Status)
90using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
92return ResponseWithHeaders.FromValue(value, headers, message.Response);
95throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
107var headers = new TableQueryHeaders(message.Response);
108switch (message.Response.Status)
113using var document = JsonDocument.Parse(message.Response.ContentStream);
115return ResponseWithHeaders.FromValue(value, headers, message.Response);
118throw _clientDiagnostics.CreateRequestFailedException(message.Response);
164var headers = new TableCreateHeaders(message.Response);
165switch (message.Response.Status)
170using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
172return ResponseWithHeaders.FromValue(value, headers, message.Response);
175return ResponseWithHeaders.FromValue((TableResponse)null, headers, message.Response);
177throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
196var headers = new TableCreateHeaders(message.Response);
197switch (message.Response.Status)
202using var document = JsonDocument.Parse(message.Response.ContentStream);
204return ResponseWithHeaders.FromValue(value, headers, message.Response);
207return ResponseWithHeaders.FromValue((TableResponse)null, headers, message.Response);
209throw _clientDiagnostics.CreateRequestFailedException(message.Response);
242var headers = new TableDeleteHeaders(message.Response);
243switch (message.Response.Status)
246return ResponseWithHeaders.FromValue(headers, message.Response);
248throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
265var headers = new TableDeleteHeaders(message.Response);
266switch (message.Response.Status)
269return ResponseWithHeaders.FromValue(headers, message.Response);
271throw _clientDiagnostics.CreateRequestFailedException(message.Response);
337var headers = new TableQueryEntitiesHeaders(message.Response);
338switch (message.Response.Status)
343using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
345return ResponseWithHeaders.FromValue(value, headers, message.Response);
348throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
369var headers = new TableQueryEntitiesHeaders(message.Response);
370switch (message.Response.Status)
375using var document = JsonDocument.Parse(message.Response.ContentStream);
377return ResponseWithHeaders.FromValue(value, headers, message.Response);
380throw _clientDiagnostics.CreateRequestFailedException(message.Response);
446var headers = new TableQueryEntityWithPartitionAndRowKeyHeaders(message.Response);
447switch (message.Response.Status)
452using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
459return ResponseWithHeaders.FromValue(value, headers, message.Response);
462throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
491var headers = new TableQueryEntityWithPartitionAndRowKeyHeaders(message.Response);
492switch (message.Response.Status)
497using var document = JsonDocument.Parse(message.Response.ContentStream);
504return ResponseWithHeaders.FromValue(value, headers, message.Response);
507throw _clientDiagnostics.CreateRequestFailedException(message.Response);
584var headers = new TableUpdateEntityHeaders(message.Response);
585switch (message.Response.Status)
588return ResponseWithHeaders.FromValue(headers, message.Response);
590throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
621var headers = new TableUpdateEntityHeaders(message.Response);
622switch (message.Response.Status)
625return ResponseWithHeaders.FromValue(headers, message.Response);
627throw _clientDiagnostics.CreateRequestFailedException(message.Response);
704var headers = new TableMergeEntityHeaders(message.Response);
705switch (message.Response.Status)
708return ResponseWithHeaders.FromValue(headers, message.Response);
710throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
741var headers = new TableMergeEntityHeaders(message.Response);
742switch (message.Response.Status)
745return ResponseWithHeaders.FromValue(headers, message.Response);
747throw _clientDiagnostics.CreateRequestFailedException(message.Response);
811var headers = new TableDeleteEntityHeaders(message.Response);
812switch (message.Response.Status)
815return ResponseWithHeaders.FromValue(headers, message.Response);
817throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
851var headers = new TableDeleteEntityHeaders(message.Response);
852switch (message.Response.Status)
855return ResponseWithHeaders.FromValue(headers, message.Response);
857throw _clientDiagnostics.CreateRequestFailedException(message.Response);
919var headers = new TableInsertEntityHeaders(message.Response);
920switch (message.Response.Status)
925using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
932return ResponseWithHeaders.FromValue(value, headers, message.Response);
935return ResponseWithHeaders.FromValue((IReadOnlyDictionary<string, object>)null, headers, message.Response);
937throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
958var headers = new TableInsertEntityHeaders(message.Response);
959switch (message.Response.Status)
964using var document = JsonDocument.Parse(message.Response.ContentStream);
971return ResponseWithHeaders.FromValue(value, headers, message.Response);
974return ResponseWithHeaders.FromValue((IReadOnlyDictionary<string, object>)null, headers, message.Response);
976throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1014var headers = new TableGetAccessPolicyHeaders(message.Response);
1015switch (message.Response.Status)
1020var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
1030return ResponseWithHeaders.FromValue(value, headers, message.Response);
1033throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1051var headers = new TableGetAccessPolicyHeaders(message.Response);
1052switch (message.Response.Status)
1057var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
1067return ResponseWithHeaders.FromValue(value, headers, message.Response);
1070throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1121var headers = new TableSetAccessPolicyHeaders(message.Response);
1122switch (message.Response.Status)
1125return ResponseWithHeaders.FromValue(headers, message.Response);
1127throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1146var headers = new TableSetAccessPolicyHeaders(message.Response);
1147switch (message.Response.Status)
1150return ResponseWithHeaders.FromValue(headers, message.Response);
1152throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Azure.DigitalTwins.Core (212)
Customized\DigitalTwinsRestClient.cs (60)
69switch (message.Response.Status)
74return Response.FromValue(value, message.Response);
77return Response.FromValue<Stream>(null, message.Response);
80throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
101switch (message.Response.Status)
106return Response.FromValue(value, message.Response);
109return Response.FromValue<Stream>(null, message.Response);
112throw _clientDiagnostics.CreateRequestFailedException(message.Response);
133switch (message.Response.Status)
137return message.Response;
140throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
161switch (message.Response.Status)
165return message.Response;
168throw _clientDiagnostics.CreateRequestFailedException(message.Response);
194switch (message.Response.Status)
199return Response.FromValue(value, message.Response);
202throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
228switch (message.Response.Status)
233return Response.FromValue(value, message.Response);
236throw _clientDiagnostics.CreateRequestFailedException(message.Response);
258return message.Response.Status switch
260204 => message.Response,
261_ => throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false),
283return message.Response.Status switch
285204 => message.Response,
286_ => throw _clientDiagnostics.CreateRequestFailedException(message.Response),
308switch (message.Response.Status)
312return message.Response;
315throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
337switch (message.Response.Status)
341return message.Response;
344throw _clientDiagnostics.CreateRequestFailedException(message.Response);
370switch (message.Response.Status)
373return message.Response;
376throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
402switch (message.Response.Status)
405return message.Response;
408throw _clientDiagnostics.CreateRequestFailedException(message.Response);
439switch (message.Response.Status)
442return message.Response;
445throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
476switch (message.Response.Status)
479return message.Response;
482throw _clientDiagnostics.CreateRequestFailedException(message.Response);
505switch (message.Response.Status)
509using JsonDocument document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
511return Response.FromValue(value, message.Response);
514throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
543switch (message.Response.Status)
547using JsonDocument document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
549return Response.FromValue(value, message.Response);
552throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
575switch (message.Response.Status)
579using JsonDocument document = JsonDocument.Parse(message.Response.ContentStream);
581return Response.FromValue(value, message.Response);
584throw _clientDiagnostics.CreateRequestFailedException(message.Response);
613switch (message.Response.Status)
617using JsonDocument document = JsonDocument.Parse(message.Response.ContentStream);
619return Response.FromValue(value, message.Response);
622throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\DigitalTwinModelsRestClient.cs (44)
85switch (message.Response.Status)
90using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
97return Response.FromValue(value, message.Response);
100throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
123switch (message.Response.Status)
128using var document = JsonDocument.Parse(message.Response.ContentStream);
135return Response.FromValue(value, message.Response);
138throw _clientDiagnostics.CreateRequestFailedException(message.Response);
186switch (message.Response.Status)
191using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
193return Response.FromValue(value, message.Response);
196throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
218switch (message.Response.Status)
223using var document = JsonDocument.Parse(message.Response.ContentStream);
225return Response.FromValue(value, message.Response);
228throw _clientDiagnostics.CreateRequestFailedException(message.Response);
275switch (message.Response.Status)
280using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
282return Response.FromValue(value, message.Response);
285throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
313switch (message.Response.Status)
318using var document = JsonDocument.Parse(message.Response.ContentStream);
320return Response.FromValue(value, message.Response);
323throw _clientDiagnostics.CreateRequestFailedException(message.Response);
382switch (message.Response.Status)
385return message.Response;
387throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
422switch (message.Response.Status)
425return message.Response;
427throw _clientDiagnostics.CreateRequestFailedException(message.Response);
471switch (message.Response.Status)
474return message.Response;
476throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
505switch (message.Response.Status)
508return message.Response;
510throw _clientDiagnostics.CreateRequestFailedException(message.Response);
556switch (message.Response.Status)
561using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
563return Response.FromValue(value, message.Response);
566throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
595switch (message.Response.Status)
600using var document = JsonDocument.Parse(message.Response.ContentStream);
602return Response.FromValue(value, message.Response);
605throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\DigitalTwinsRestClient.cs (46)
78switch (message.Response.Status)
83return Response.FromValue(value, message.Response);
86throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
112switch (message.Response.Status)
117return Response.FromValue(value, message.Response);
120throw _clientDiagnostics.CreateRequestFailedException(message.Response);
168switch (message.Response.Status)
171return message.Response;
173throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
202switch (message.Response.Status)
205return message.Response;
207throw _clientDiagnostics.CreateRequestFailedException(message.Response);
284switch (message.Response.Status)
289return Response.FromValue(value, message.Response);
292throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
324switch (message.Response.Status)
329return Response.FromValue(value, message.Response);
332throw _clientDiagnostics.CreateRequestFailedException(message.Response);
412switch (message.Response.Status)
415return message.Response;
417throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
451switch (message.Response.Status)
454return message.Response;
456throw _clientDiagnostics.CreateRequestFailedException(message.Response);
548switch (message.Response.Status)
553using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
555return Response.FromValue(value, message.Response);
558throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
584switch (message.Response.Status)
589using var document = JsonDocument.Parse(message.Response.ContentStream);
591return Response.FromValue(value, message.Response);
594throw _clientDiagnostics.CreateRequestFailedException(message.Response);
695switch (message.Response.Status)
700return Response.FromValue(value, message.Response);
703throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
735switch (message.Response.Status)
740return Response.FromValue(value, message.Response);
743throw _clientDiagnostics.CreateRequestFailedException(message.Response);
830switch (message.Response.Status)
835using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
837return Response.FromValue(value, message.Response);
840throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
871switch (message.Response.Status)
876using var document = JsonDocument.Parse(message.Response.ContentStream);
878return Response.FromValue(value, message.Response);
881throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\EventRoutesRestClient.cs (36)
68switch (message.Response.Status)
73using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
75return Response.FromValue(value, message.Response);
78throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
93switch (message.Response.Status)
98using var document = JsonDocument.Parse(message.Response.ContentStream);
100return Response.FromValue(value, message.Response);
103throw _clientDiagnostics.CreateRequestFailedException(message.Response);
142switch (message.Response.Status)
147using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
149return Response.FromValue(value, message.Response);
152throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
176switch (message.Response.Status)
181using var document = JsonDocument.Parse(message.Response.ContentStream);
183return Response.FromValue(value, message.Response);
186throw _clientDiagnostics.CreateRequestFailedException(message.Response);
236switch (message.Response.Status)
239return message.Response;
241throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
269switch (message.Response.Status)
272return message.Response;
274throw _clientDiagnostics.CreateRequestFailedException(message.Response);
313switch (message.Response.Status)
316return message.Response;
318throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
342switch (message.Response.Status)
345return message.Response;
347throw _clientDiagnostics.CreateRequestFailedException(message.Response);
386switch (message.Response.Status)
391using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
393return Response.FromValue(value, message.Response);
396throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
418switch (message.Response.Status)
423using var document = JsonDocument.Parse(message.Response.ContentStream);
425return Response.FromValue(value, message.Response);
428throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Azure.Graph.Rbac (548)
Generated\ApplicationsRestOperations.cs (116)
86switch (message.Response.Status)
91using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
93return Response.FromValue(value, message.Response);
96throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
113switch (message.Response.Status)
118using var document = JsonDocument.Parse(message.Response.ContentStream);
120return Response.FromValue(value, message.Response);
123throw _clientDiagnostics.CreateRequestFailedException(message.Response);
154switch (message.Response.Status)
159using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
161return Response.FromValue(value, message.Response);
164throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
175switch (message.Response.Status)
180using var document = JsonDocument.Parse(message.Response.ContentStream);
182return Response.FromValue(value, message.Response);
185throw _clientDiagnostics.CreateRequestFailedException(message.Response);
219switch (message.Response.Status)
222return message.Response;
224throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
241switch (message.Response.Status)
244return message.Response;
246throw _clientDiagnostics.CreateRequestFailedException(message.Response);
280switch (message.Response.Status)
285using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
287return Response.FromValue(value, message.Response);
290throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
307switch (message.Response.Status)
312using var document = JsonDocument.Parse(message.Response.ContentStream);
314return Response.FromValue(value, message.Response);
317throw _clientDiagnostics.CreateRequestFailedException(message.Response);
360switch (message.Response.Status)
363return message.Response;
365throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
387switch (message.Response.Status)
390return message.Response;
392throw _clientDiagnostics.CreateRequestFailedException(message.Response);
427switch (message.Response.Status)
432using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
434return Response.FromValue(value, message.Response);
437throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
454switch (message.Response.Status)
459using var document = JsonDocument.Parse(message.Response.ContentStream);
461return Response.FromValue(value, message.Response);
464throw _clientDiagnostics.CreateRequestFailedException(message.Response);
508switch (message.Response.Status)
511return message.Response;
513throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
535switch (message.Response.Status)
538return message.Response;
540throw _clientDiagnostics.CreateRequestFailedException(message.Response);
581switch (message.Response.Status)
584return message.Response;
586throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
608switch (message.Response.Status)
611return message.Response;
613throw _clientDiagnostics.CreateRequestFailedException(message.Response);
648switch (message.Response.Status)
653using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
655return Response.FromValue(value, message.Response);
658throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
675switch (message.Response.Status)
680using var document = JsonDocument.Parse(message.Response.ContentStream);
682return Response.FromValue(value, message.Response);
685throw _clientDiagnostics.CreateRequestFailedException(message.Response);
729switch (message.Response.Status)
732return message.Response;
734throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
756switch (message.Response.Status)
759return message.Response;
761throw _clientDiagnostics.CreateRequestFailedException(message.Response);
796switch (message.Response.Status)
801using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
803return Response.FromValue(value, message.Response);
806throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
823switch (message.Response.Status)
828using var document = JsonDocument.Parse(message.Response.ContentStream);
830return Response.FromValue(value, message.Response);
833throw _clientDiagnostics.CreateRequestFailedException(message.Response);
877switch (message.Response.Status)
880return message.Response;
882throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
904switch (message.Response.Status)
907return message.Response;
909throw _clientDiagnostics.CreateRequestFailedException(message.Response);
944switch (message.Response.Status)
949using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
951return Response.FromValue(value, message.Response);
954throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
971switch (message.Response.Status)
976using var document = JsonDocument.Parse(message.Response.ContentStream);
978return Response.FromValue(value, message.Response);
981throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1015switch (message.Response.Status)
1020using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1022return Response.FromValue(value, message.Response);
1025throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1042switch (message.Response.Status)
1047using var document = JsonDocument.Parse(message.Response.ContentStream);
1049return Response.FromValue(value, message.Response);
1052throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1087switch (message.Response.Status)
1092using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1094return Response.FromValue(value, message.Response);
1097throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1119switch (message.Response.Status)
1124using var document = JsonDocument.Parse(message.Response.ContentStream);
1126return Response.FromValue(value, message.Response);
1129throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1159switch (message.Response.Status)
1164using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1166return Response.FromValue(value, message.Response);
1169throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1186switch (message.Response.Status)
1191using var document = JsonDocument.Parse(message.Response.ContentStream);
1193return Response.FromValue(value, message.Response);
1196throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\DeletedApplicationsRestOperations.cs (38)
84switch (message.Response.Status)
89using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
91return Response.FromValue(value, message.Response);
94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
111switch (message.Response.Status)
116using var document = JsonDocument.Parse(message.Response.ContentStream);
118return Response.FromValue(value, message.Response);
121throw _clientDiagnostics.CreateRequestFailedException(message.Response);
152switch (message.Response.Status)
157using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
159return Response.FromValue(value, message.Response);
162throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
173switch (message.Response.Status)
178using var document = JsonDocument.Parse(message.Response.ContentStream);
180return Response.FromValue(value, message.Response);
183throw _clientDiagnostics.CreateRequestFailedException(message.Response);
217switch (message.Response.Status)
220return message.Response;
222throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
239switch (message.Response.Status)
242return message.Response;
244throw _clientDiagnostics.CreateRequestFailedException(message.Response);
278switch (message.Response.Status)
283using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
285return Response.FromValue(value, message.Response);
288throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
305switch (message.Response.Status)
310using var document = JsonDocument.Parse(message.Response.ContentStream);
312return Response.FromValue(value, message.Response);
315throw _clientDiagnostics.CreateRequestFailedException(message.Response);
345switch (message.Response.Status)
350using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
352return Response.FromValue(value, message.Response);
355throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
372switch (message.Response.Status)
377using var document = JsonDocument.Parse(message.Response.ContentStream);
379return Response.FromValue(value, message.Response);
382throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\GroupsRestOperations.cs (126)
86switch (message.Response.Status)
91using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
93return Response.FromValue(value, message.Response);
96throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
113switch (message.Response.Status)
118using var document = JsonDocument.Parse(message.Response.ContentStream);
120return Response.FromValue(value, message.Response);
123throw _clientDiagnostics.CreateRequestFailedException(message.Response);
164switch (message.Response.Status)
167return message.Response;
169throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
191switch (message.Response.Status)
194return message.Response;
196throw _clientDiagnostics.CreateRequestFailedException(message.Response);
240switch (message.Response.Status)
243return message.Response;
245throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
267switch (message.Response.Status)
270return message.Response;
272throw _clientDiagnostics.CreateRequestFailedException(message.Response);
309switch (message.Response.Status)
314using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
316return Response.FromValue(value, message.Response);
319throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
336switch (message.Response.Status)
341using var document = JsonDocument.Parse(message.Response.ContentStream);
343return Response.FromValue(value, message.Response);
346throw _clientDiagnostics.CreateRequestFailedException(message.Response);
377switch (message.Response.Status)
382using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
384return Response.FromValue(value, message.Response);
387throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
398switch (message.Response.Status)
403using var document = JsonDocument.Parse(message.Response.ContentStream);
405return Response.FromValue(value, message.Response);
408throw _clientDiagnostics.CreateRequestFailedException(message.Response);
443switch (message.Response.Status)
448using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
450return Response.FromValue(value, message.Response);
453throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
470switch (message.Response.Status)
475using var document = JsonDocument.Parse(message.Response.ContentStream);
477return Response.FromValue(value, message.Response);
480throw _clientDiagnostics.CreateRequestFailedException(message.Response);
514switch (message.Response.Status)
519using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
521return Response.FromValue(value, message.Response);
524throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
541switch (message.Response.Status)
546using var document = JsonDocument.Parse(message.Response.ContentStream);
548return Response.FromValue(value, message.Response);
551throw _clientDiagnostics.CreateRequestFailedException(message.Response);
585switch (message.Response.Status)
588return message.Response;
590throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
607switch (message.Response.Status)
610return message.Response;
612throw _clientDiagnostics.CreateRequestFailedException(message.Response);
656switch (message.Response.Status)
661using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
663return Response.FromValue(value, message.Response);
666throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
688switch (message.Response.Status)
693using var document = JsonDocument.Parse(message.Response.ContentStream);
695return Response.FromValue(value, message.Response);
698throw _clientDiagnostics.CreateRequestFailedException(message.Response);
733switch (message.Response.Status)
738using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
740return Response.FromValue(value, message.Response);
743throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
760switch (message.Response.Status)
765using var document = JsonDocument.Parse(message.Response.ContentStream);
767return Response.FromValue(value, message.Response);
770throw _clientDiagnostics.CreateRequestFailedException(message.Response);
814switch (message.Response.Status)
817return message.Response;
819throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
841switch (message.Response.Status)
844return message.Response;
846throw _clientDiagnostics.CreateRequestFailedException(message.Response);
887switch (message.Response.Status)
890return message.Response;
892throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
914switch (message.Response.Status)
917return message.Response;
919throw _clientDiagnostics.CreateRequestFailedException(message.Response);
953switch (message.Response.Status)
958using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
960return Response.FromValue(value, message.Response);
963throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
980switch (message.Response.Status)
985using var document = JsonDocument.Parse(message.Response.ContentStream);
987return Response.FromValue(value, message.Response);
990throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1024switch (message.Response.Status)
1029using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1031return Response.FromValue(value, message.Response);
1034throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1051switch (message.Response.Status)
1056using var document = JsonDocument.Parse(message.Response.ContentStream);
1058return Response.FromValue(value, message.Response);
1061throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1096switch (message.Response.Status)
1101using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1103return Response.FromValue(value, message.Response);
1106throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1128switch (message.Response.Status)
1133using var document = JsonDocument.Parse(message.Response.ContentStream);
1135return Response.FromValue(value, message.Response);
1138throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1168switch (message.Response.Status)
1173using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1175return Response.FromValue(value, message.Response);
1178throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1195switch (message.Response.Status)
1200using var document = JsonDocument.Parse(message.Response.ContentStream);
1202return Response.FromValue(value, message.Response);
1205throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1235switch (message.Response.Status)
1240using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1242return Response.FromValue(value, message.Response);
1245throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1262switch (message.Response.Status)
1267using var document = JsonDocument.Parse(message.Response.ContentStream);
1269return Response.FromValue(value, message.Response);
1272throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\OAuth2PermissionGrantRestOperations.cs (38)
80switch (message.Response.Status)
85using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
87return Response.FromValue(value, message.Response);
90throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
101switch (message.Response.Status)
106using var document = JsonDocument.Parse(message.Response.ContentStream);
108return Response.FromValue(value, message.Response);
111throw _clientDiagnostics.CreateRequestFailedException(message.Response);
145switch (message.Response.Status)
150using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
152return Response.FromValue(value, message.Response);
155throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
166switch (message.Response.Status)
171using var document = JsonDocument.Parse(message.Response.ContentStream);
173return Response.FromValue(value, message.Response);
176throw _clientDiagnostics.CreateRequestFailedException(message.Response);
210switch (message.Response.Status)
213return message.Response;
215throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
232switch (message.Response.Status)
235return message.Response;
237throw _clientDiagnostics.CreateRequestFailedException(message.Response);
271switch (message.Response.Status)
276using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
278return Response.FromValue(value, message.Response);
281throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
298switch (message.Response.Status)
303using var document = JsonDocument.Parse(message.Response.ContentStream);
305return Response.FromValue(value, message.Response);
308throw _clientDiagnostics.CreateRequestFailedException(message.Response);
338switch (message.Response.Status)
343using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
345return Response.FromValue(value, message.Response);
348throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
365switch (message.Response.Status)
370using var document = JsonDocument.Parse(message.Response.ContentStream);
372return Response.FromValue(value, message.Response);
375throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ObjectsRestOperations.cs (24)
86switch (message.Response.Status)
91using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
93return Response.FromValue(value, message.Response);
96throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
113switch (message.Response.Status)
118using var document = JsonDocument.Parse(message.Response.ContentStream);
120return Response.FromValue(value, message.Response);
123throw _clientDiagnostics.CreateRequestFailedException(message.Response);
157switch (message.Response.Status)
162using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
164return Response.FromValue(value, message.Response);
167throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
184switch (message.Response.Status)
189using var document = JsonDocument.Parse(message.Response.ContentStream);
191return Response.FromValue(value, message.Response);
194throw _clientDiagnostics.CreateRequestFailedException(message.Response);
224switch (message.Response.Status)
229using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
231return Response.FromValue(value, message.Response);
234throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
251switch (message.Response.Status)
256using var document = JsonDocument.Parse(message.Response.ContentStream);
258return Response.FromValue(value, message.Response);
261throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ServicePrincipalsRestOperations.cs (96)
86switch (message.Response.Status)
91using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
93return Response.FromValue(value, message.Response);
96throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
113switch (message.Response.Status)
118using var document = JsonDocument.Parse(message.Response.ContentStream);
120return Response.FromValue(value, message.Response);
123throw _clientDiagnostics.CreateRequestFailedException(message.Response);
154switch (message.Response.Status)
159using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
161return Response.FromValue(value, message.Response);
164throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
175switch (message.Response.Status)
180using var document = JsonDocument.Parse(message.Response.ContentStream);
182return Response.FromValue(value, message.Response);
185throw _clientDiagnostics.CreateRequestFailedException(message.Response);
228switch (message.Response.Status)
231return message.Response;
233throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
255switch (message.Response.Status)
258return message.Response;
260throw _clientDiagnostics.CreateRequestFailedException(message.Response);
294switch (message.Response.Status)
297return message.Response;
299throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
316switch (message.Response.Status)
319return message.Response;
321throw _clientDiagnostics.CreateRequestFailedException(message.Response);
355switch (message.Response.Status)
360using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
362return Response.FromValue(value, message.Response);
365throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
382switch (message.Response.Status)
387using var document = JsonDocument.Parse(message.Response.ContentStream);
389return Response.FromValue(value, message.Response);
392throw _clientDiagnostics.CreateRequestFailedException(message.Response);
427switch (message.Response.Status)
432using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
434return Response.FromValue(value, message.Response);
437throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
454switch (message.Response.Status)
459using var document = JsonDocument.Parse(message.Response.ContentStream);
461return Response.FromValue(value, message.Response);
464throw _clientDiagnostics.CreateRequestFailedException(message.Response);
499switch (message.Response.Status)
504using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
506return Response.FromValue(value, message.Response);
509throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
526switch (message.Response.Status)
531using var document = JsonDocument.Parse(message.Response.ContentStream);
533return Response.FromValue(value, message.Response);
536throw _clientDiagnostics.CreateRequestFailedException(message.Response);
580switch (message.Response.Status)
583return message.Response;
585throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
607switch (message.Response.Status)
610return message.Response;
612throw _clientDiagnostics.CreateRequestFailedException(message.Response);
647switch (message.Response.Status)
652using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
654return Response.FromValue(value, message.Response);
657throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
674switch (message.Response.Status)
679using var document = JsonDocument.Parse(message.Response.ContentStream);
681return Response.FromValue(value, message.Response);
684throw _clientDiagnostics.CreateRequestFailedException(message.Response);
728switch (message.Response.Status)
731return message.Response;
733throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
755switch (message.Response.Status)
758return message.Response;
760throw _clientDiagnostics.CreateRequestFailedException(message.Response);
794switch (message.Response.Status)
799using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
801return Response.FromValue(value, message.Response);
804throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
821switch (message.Response.Status)
826using var document = JsonDocument.Parse(message.Response.ContentStream);
828return Response.FromValue(value, message.Response);
831throw _clientDiagnostics.CreateRequestFailedException(message.Response);
866switch (message.Response.Status)
871using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
873return Response.FromValue(value, message.Response);
876throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
898switch (message.Response.Status)
903using var document = JsonDocument.Parse(message.Response.ContentStream);
905return Response.FromValue(value, message.Response);
908throw _clientDiagnostics.CreateRequestFailedException(message.Response);
938switch (message.Response.Status)
943using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
945return Response.FromValue(value, message.Response);
948throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
965switch (message.Response.Status)
970using var document = JsonDocument.Parse(message.Response.ContentStream);
972return Response.FromValue(value, message.Response);
975throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\SignedInUserRestOperations.cs (32)
75switch (message.Response.Status)
80using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
82return Response.FromValue(value, message.Response);
85throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
95switch (message.Response.Status)
100using var document = JsonDocument.Parse(message.Response.ContentStream);
102return Response.FromValue(value, message.Response);
105throw _clientDiagnostics.CreateRequestFailedException(message.Response);
131switch (message.Response.Status)
136using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
138return Response.FromValue(value, message.Response);
141throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
151switch (message.Response.Status)
156using var document = JsonDocument.Parse(message.Response.ContentStream);
158return Response.FromValue(value, message.Response);
161throw _clientDiagnostics.CreateRequestFailedException(message.Response);
195switch (message.Response.Status)
200using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
202return Response.FromValue(value, message.Response);
205throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
222switch (message.Response.Status)
227using var document = JsonDocument.Parse(message.Response.ContentStream);
229return Response.FromValue(value, message.Response);
232throw _clientDiagnostics.CreateRequestFailedException(message.Response);
262switch (message.Response.Status)
267using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
269return Response.FromValue(value, message.Response);
272throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
289switch (message.Response.Status)
294using var document = JsonDocument.Parse(message.Response.ContentStream);
296return Response.FromValue(value, message.Response);
299throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\UsersRestOperations.cs (60)
86switch (message.Response.Status)
91using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
93return Response.FromValue(value, message.Response);
96throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
113switch (message.Response.Status)
118using var document = JsonDocument.Parse(message.Response.ContentStream);
120return Response.FromValue(value, message.Response);
123throw _clientDiagnostics.CreateRequestFailedException(message.Response);
154switch (message.Response.Status)
159using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
161return Response.FromValue(value, message.Response);
164throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
175switch (message.Response.Status)
180using var document = JsonDocument.Parse(message.Response.ContentStream);
182return Response.FromValue(value, message.Response);
185throw _clientDiagnostics.CreateRequestFailedException(message.Response);
219switch (message.Response.Status)
224using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
226return Response.FromValue(value, message.Response);
229throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
246switch (message.Response.Status)
251using var document = JsonDocument.Parse(message.Response.ContentStream);
253return Response.FromValue(value, message.Response);
256throw _clientDiagnostics.CreateRequestFailedException(message.Response);
299switch (message.Response.Status)
302return message.Response;
304throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
326switch (message.Response.Status)
329return message.Response;
331throw _clientDiagnostics.CreateRequestFailedException(message.Response);
365switch (message.Response.Status)
368return message.Response;
370throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
387switch (message.Response.Status)
390return message.Response;
392throw _clientDiagnostics.CreateRequestFailedException(message.Response);
436switch (message.Response.Status)
441using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
443return Response.FromValue(value, message.Response);
446throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
468switch (message.Response.Status)
473using var document = JsonDocument.Parse(message.Response.ContentStream);
475return Response.FromValue(value, message.Response);
478throw _clientDiagnostics.CreateRequestFailedException(message.Response);
512switch (message.Response.Status)
517using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
519return Response.FromValue(value, message.Response);
522throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
539switch (message.Response.Status)
544using var document = JsonDocument.Parse(message.Response.ContentStream);
546return Response.FromValue(value, message.Response);
549throw _clientDiagnostics.CreateRequestFailedException(message.Response);
579switch (message.Response.Status)
584using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
586return Response.FromValue(value, message.Response);
589throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
606switch (message.Response.Status)
611using var document = JsonDocument.Parse(message.Response.ContentStream);
613return Response.FromValue(value, message.Response);
616throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Azure.Identity (3)
Azure.IoT.DeviceUpdate (382)
Generated\DeploymentsRestClient.cs (78)
67switch (message.Response.Status)
72using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
74return Response.FromValue(value, message.Response);
77throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
88switch (message.Response.Status)
93using var document = JsonDocument.Parse(message.Response.ContentStream);
95return Response.FromValue(value, message.Response);
98throw _clientDiagnostics.CreateRequestFailedException(message.Response);
132switch (message.Response.Status)
137using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
139return Response.FromValue(value, message.Response);
142throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
159switch (message.Response.Status)
164using var document = JsonDocument.Parse(message.Response.ContentStream);
166return Response.FromValue(value, message.Response);
169throw _clientDiagnostics.CreateRequestFailedException(message.Response);
212switch (message.Response.Status)
217using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
219return Response.FromValue(value, message.Response);
222throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
244switch (message.Response.Status)
249using var document = JsonDocument.Parse(message.Response.ContentStream);
251return Response.FromValue(value, message.Response);
254throw _clientDiagnostics.CreateRequestFailedException(message.Response);
287switch (message.Response.Status)
290return message.Response;
292throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
309switch (message.Response.Status)
312return message.Response;
314throw _clientDiagnostics.CreateRequestFailedException(message.Response);
349switch (message.Response.Status)
354using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
356return Response.FromValue(value, message.Response);
359throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
376switch (message.Response.Status)
381using var document = JsonDocument.Parse(message.Response.ContentStream);
383return Response.FromValue(value, message.Response);
386throw _clientDiagnostics.CreateRequestFailedException(message.Response);
426switch (message.Response.Status)
431using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
433return Response.FromValue(value, message.Response);
436throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
454switch (message.Response.Status)
459using var document = JsonDocument.Parse(message.Response.ContentStream);
461return Response.FromValue(value, message.Response);
464throw _clientDiagnostics.CreateRequestFailedException(message.Response);
499switch (message.Response.Status)
504using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
506return Response.FromValue(value, message.Response);
509throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
526switch (message.Response.Status)
531using var document = JsonDocument.Parse(message.Response.ContentStream);
533return Response.FromValue(value, message.Response);
536throw _clientDiagnostics.CreateRequestFailedException(message.Response);
571switch (message.Response.Status)
576using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
578return Response.FromValue(value, message.Response);
581throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
598switch (message.Response.Status)
603using var document = JsonDocument.Parse(message.Response.ContentStream);
605return Response.FromValue(value, message.Response);
608throw _clientDiagnostics.CreateRequestFailedException(message.Response);
640switch (message.Response.Status)
645using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
647return Response.FromValue(value, message.Response);
650throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
668switch (message.Response.Status)
673using var document = JsonDocument.Parse(message.Response.ContentStream);
675return Response.FromValue(value, message.Response);
678throw _clientDiagnostics.CreateRequestFailedException(message.Response);
715switch (message.Response.Status)
720using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
722return Response.FromValue(value, message.Response);
725throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
748switch (message.Response.Status)
753using var document = JsonDocument.Parse(message.Response.ContentStream);
755return Response.FromValue(value, message.Response);
758throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\DevicesRestClient.cs (174)
62switch (message.Response.Status)
67using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
69return Response.FromValue(value, message.Response);
72throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
82switch (message.Response.Status)
87using var document = JsonDocument.Parse(message.Response.ContentStream);
89return Response.FromValue(value, message.Response);
92throw _clientDiagnostics.CreateRequestFailedException(message.Response);
126switch (message.Response.Status)
131using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
133return Response.FromValue(value, message.Response);
136throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
153switch (message.Response.Status)
158using var document = JsonDocument.Parse(message.Response.ContentStream);
160return Response.FromValue(value, message.Response);
163throw _clientDiagnostics.CreateRequestFailedException(message.Response);
198switch (message.Response.Status)
203using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
205return Response.FromValue(value, message.Response);
208throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
225switch (message.Response.Status)
230using var document = JsonDocument.Parse(message.Response.ContentStream);
232return Response.FromValue(value, message.Response);
235throw _clientDiagnostics.CreateRequestFailedException(message.Response);
270switch (message.Response.Status)
275using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
277return Response.FromValue(value, message.Response);
280throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
297switch (message.Response.Status)
302using var document = JsonDocument.Parse(message.Response.ContentStream);
304return Response.FromValue(value, message.Response);
307throw _clientDiagnostics.CreateRequestFailedException(message.Response);
338switch (message.Response.Status)
343using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
345return Response.FromValue(value, message.Response);
348throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
359switch (message.Response.Status)
364using var document = JsonDocument.Parse(message.Response.ContentStream);
366return Response.FromValue(value, message.Response);
369throw _clientDiagnostics.CreateRequestFailedException(message.Response);
403switch (message.Response.Status)
408using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
410return Response.FromValue(value, message.Response);
413throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
430switch (message.Response.Status)
435using var document = JsonDocument.Parse(message.Response.ContentStream);
437return Response.FromValue(value, message.Response);
440throw _clientDiagnostics.CreateRequestFailedException(message.Response);
466switch (message.Response.Status)
471using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
473return Response.FromValue(value, message.Response);
476throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
486switch (message.Response.Status)
491using var document = JsonDocument.Parse(message.Response.ContentStream);
493return Response.FromValue(value, message.Response);
496throw _clientDiagnostics.CreateRequestFailedException(message.Response);
522switch (message.Response.Status)
527using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
529return Response.FromValue(value, message.Response);
532throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
542switch (message.Response.Status)
547using var document = JsonDocument.Parse(message.Response.ContentStream);
549return Response.FromValue(value, message.Response);
552throw _clientDiagnostics.CreateRequestFailedException(message.Response);
586switch (message.Response.Status)
591using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
593return Response.FromValue(value, message.Response);
596throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
613switch (message.Response.Status)
618using var document = JsonDocument.Parse(message.Response.ContentStream);
620return Response.FromValue(value, message.Response);
623throw _clientDiagnostics.CreateRequestFailedException(message.Response);
649switch (message.Response.Status)
654using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
656return Response.FromValue(value, message.Response);
659throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
669switch (message.Response.Status)
674using var document = JsonDocument.Parse(message.Response.ContentStream);
676return Response.FromValue(value, message.Response);
679throw _clientDiagnostics.CreateRequestFailedException(message.Response);
713switch (message.Response.Status)
718using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
720return Response.FromValue(value, message.Response);
723throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
740switch (message.Response.Status)
745using var document = JsonDocument.Parse(message.Response.ContentStream);
747return Response.FromValue(value, message.Response);
750throw _clientDiagnostics.CreateRequestFailedException(message.Response);
793switch (message.Response.Status)
798using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
800return Response.FromValue(value, message.Response);
803throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
825switch (message.Response.Status)
830using var document = JsonDocument.Parse(message.Response.ContentStream);
832return Response.FromValue(value, message.Response);
835throw _clientDiagnostics.CreateRequestFailedException(message.Response);
868switch (message.Response.Status)
872return message.Response;
874throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
891switch (message.Response.Status)
895return message.Response;
897throw _clientDiagnostics.CreateRequestFailedException(message.Response);
932switch (message.Response.Status)
937using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
939return Response.FromValue(value, message.Response);
942throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
959switch (message.Response.Status)
964using var document = JsonDocument.Parse(message.Response.ContentStream);
966return Response.FromValue(value, message.Response);
969throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1009switch (message.Response.Status)
1014using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1016return Response.FromValue(value, message.Response);
1019throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1037switch (message.Response.Status)
1042using var document = JsonDocument.Parse(message.Response.ContentStream);
1044return Response.FromValue(value, message.Response);
1047throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1078switch (message.Response.Status)
1083using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1085return Response.FromValue(value, message.Response);
1088throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1105switch (message.Response.Status)
1110using var document = JsonDocument.Parse(message.Response.ContentStream);
1112return Response.FromValue(value, message.Response);
1115throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1151switch (message.Response.Status)
1156using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1158return Response.FromValue(value, message.Response);
1161throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1183switch (message.Response.Status)
1188using var document = JsonDocument.Parse(message.Response.ContentStream);
1190return Response.FromValue(value, message.Response);
1193throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1229switch (message.Response.Status)
1234using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1236return Response.FromValue(value, message.Response);
1239throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1261switch (message.Response.Status)
1266using var document = JsonDocument.Parse(message.Response.ContentStream);
1268return Response.FromValue(value, message.Response);
1271throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1303switch (message.Response.Status)
1308using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1310return Response.FromValue(value, message.Response);
1313throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1331switch (message.Response.Status)
1336using var document = JsonDocument.Parse(message.Response.ContentStream);
1338return Response.FromValue(value, message.Response);
1341throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1372switch (message.Response.Status)
1377using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1379return Response.FromValue(value, message.Response);
1382throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1399switch (message.Response.Status)
1404using var document = JsonDocument.Parse(message.Response.ContentStream);
1406return Response.FromValue(value, message.Response);
1409throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1440switch (message.Response.Status)
1445using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1447return Response.FromValue(value, message.Response);
1450throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1467switch (message.Response.Status)
1472using var document = JsonDocument.Parse(message.Response.ContentStream);
1474return Response.FromValue(value, message.Response);
1477throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1514switch (message.Response.Status)
1519using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1521return Response.FromValue(value, message.Response);
1524throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1547switch (message.Response.Status)
1552using var document = JsonDocument.Parse(message.Response.ContentStream);
1554return Response.FromValue(value, message.Response);
1557throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\UpdatesRestClient.cs (128)
73var headers = new UpdatesImportUpdateHeaders(message.Response);
74switch (message.Response.Status)
77return ResponseWithHeaders.FromValue(headers, message.Response);
79throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
96var headers = new UpdatesImportUpdateHeaders(message.Response);
97switch (message.Response.Status)
100return ResponseWithHeaders.FromValue(headers, message.Response);
102throw _clientDiagnostics.CreateRequestFailedException(message.Response);
155switch (message.Response.Status)
160using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
162return Response.FromValue(value, message.Response);
165return Response.FromValue((Update)null, message.Response);
167throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
195switch (message.Response.Status)
200using var document = JsonDocument.Parse(message.Response.ContentStream);
202return Response.FromValue(value, message.Response);
205return Response.FromValue((Update)null, message.Response);
207throw _clientDiagnostics.CreateRequestFailedException(message.Response);
254var headers = new UpdatesDeleteUpdateHeaders(message.Response);
255switch (message.Response.Status)
258return ResponseWithHeaders.FromValue(headers, message.Response);
260throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
287var headers = new UpdatesDeleteUpdateHeaders(message.Response);
288switch (message.Response.Status)
291return ResponseWithHeaders.FromValue(headers, message.Response);
293throw _clientDiagnostics.CreateRequestFailedException(message.Response);
319switch (message.Response.Status)
324using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
326return Response.FromValue(value, message.Response);
329throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
339switch (message.Response.Status)
344using var document = JsonDocument.Parse(message.Response.ContentStream);
346return Response.FromValue(value, message.Response);
349throw _clientDiagnostics.CreateRequestFailedException(message.Response);
384switch (message.Response.Status)
389using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
391return Response.FromValue(value, message.Response);
394throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
411switch (message.Response.Status)
416using var document = JsonDocument.Parse(message.Response.ContentStream);
418return Response.FromValue(value, message.Response);
421throw _clientDiagnostics.CreateRequestFailedException(message.Response);
463switch (message.Response.Status)
468using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
470return Response.FromValue(value, message.Response);
473throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
495switch (message.Response.Status)
500using var document = JsonDocument.Parse(message.Response.ContentStream);
502return Response.FromValue(value, message.Response);
505throw _clientDiagnostics.CreateRequestFailedException(message.Response);
554switch (message.Response.Status)
559using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
561return Response.FromValue(value, message.Response);
564throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
591switch (message.Response.Status)
596using var document = JsonDocument.Parse(message.Response.ContentStream);
598return Response.FromValue(value, message.Response);
601throw _clientDiagnostics.CreateRequestFailedException(message.Response);
661switch (message.Response.Status)
666using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
668return Response.FromValue(value, message.Response);
671return Response.FromValue((File)null, message.Response);
673throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
706switch (message.Response.Status)
711using var document = JsonDocument.Parse(message.Response.ContentStream);
713return Response.FromValue(value, message.Response);
716return Response.FromValue((File)null, message.Response);
718throw _clientDiagnostics.CreateRequestFailedException(message.Response);
754switch (message.Response.Status)
759using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
761return Response.FromValue(value, message.Response);
764throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
776switch (message.Response.Status)
781using var document = JsonDocument.Parse(message.Response.ContentStream);
783return Response.FromValue(value, message.Response);
786throw _clientDiagnostics.CreateRequestFailedException(message.Response);
825var headers = new UpdatesGetOperationHeaders(message.Response);
826switch (message.Response.Status)
831using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
833return ResponseWithHeaders.FromValue(value, headers, message.Response);
836return ResponseWithHeaders.FromValue((Models.Operation)null, headers, message.Response);
838throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
856var headers = new UpdatesGetOperationHeaders(message.Response);
857switch (message.Response.Status)
862using var document = JsonDocument.Parse(message.Response.ContentStream);
864return ResponseWithHeaders.FromValue(value, headers, message.Response);
867return ResponseWithHeaders.FromValue((Models.Operation)null, headers, message.Response);
869throw _clientDiagnostics.CreateRequestFailedException(message.Response);
900switch (message.Response.Status)
905using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
907return Response.FromValue(value, message.Response);
910throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
927switch (message.Response.Status)
932using var document = JsonDocument.Parse(message.Response.ContentStream);
934return Response.FromValue(value, message.Response);
937throw _clientDiagnostics.CreateRequestFailedException(message.Response);
973switch (message.Response.Status)
978using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
980return Response.FromValue(value, message.Response);
983throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1005switch (message.Response.Status)
1010using var document = JsonDocument.Parse(message.Response.ContentStream);
1012return Response.FromValue(value, message.Response);
1015throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1056switch (message.Response.Status)
1061using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1063return Response.FromValue(value, message.Response);
1066throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1093switch (message.Response.Status)
1098using var document = JsonDocument.Parse(message.Response.ContentStream);
1100return Response.FromValue(value, message.Response);
1103throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1149switch (message.Response.Status)
1154using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1156return Response.FromValue(value, message.Response);
1159throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1191switch (message.Response.Status)
1196using var document = JsonDocument.Parse(message.Response.ContentStream);
1198return Response.FromValue(value, message.Response);
1201throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1234switch (message.Response.Status)
1239using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1241return Response.FromValue(value, message.Response);
1244throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1263switch (message.Response.Status)
1268using var document = JsonDocument.Parse(message.Response.ContentStream);
1270return Response.FromValue(value, message.Response);
1273throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Azure.IoT.Hub.Service (296)
Generated\ConfigurationRestClient.cs (44)
69switch (message.Response.Status)
74using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
76return Response.FromValue(value, message.Response);
79throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
96switch (message.Response.Status)
101using var document = JsonDocument.Parse(message.Response.ContentStream);
103return Response.FromValue(value, message.Response);
106throw _clientDiagnostics.CreateRequestFailedException(message.Response);
152switch (message.Response.Status)
158using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
160return Response.FromValue(value, message.Response);
163throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
186switch (message.Response.Status)
192using var document = JsonDocument.Parse(message.Response.ContentStream);
194return Response.FromValue(value, message.Response);
197throw _clientDiagnostics.CreateRequestFailedException(message.Response);
233switch (message.Response.Status)
236return message.Response;
238throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
256switch (message.Response.Status)
259return message.Response;
261throw _clientDiagnostics.CreateRequestFailedException(message.Response);
290switch (message.Response.Status)
295using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
302return Response.FromValue(value, message.Response);
305throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
316switch (message.Response.Status)
321using var document = JsonDocument.Parse(message.Response.ContentStream);
328return Response.FromValue(value, message.Response);
331throw _clientDiagnostics.CreateRequestFailedException(message.Response);
366switch (message.Response.Status)
371using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
373return Response.FromValue(value, message.Response);
376throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
393switch (message.Response.Status)
398using var document = JsonDocument.Parse(message.Response.ContentStream);
400return Response.FromValue(value, message.Response);
403throw _clientDiagnostics.CreateRequestFailedException(message.Response);
444switch (message.Response.Status)
447return message.Response;
449throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
471switch (message.Response.Status)
474return message.Response;
476throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\DevicesRestClient.cs (62)
66switch (message.Response.Status)
71using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
78return Response.FromValue(value, message.Response);
81throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
92switch (message.Response.Status)
97using var document = JsonDocument.Parse(message.Response.ContentStream);
104return Response.FromValue(value, message.Response);
107throw _clientDiagnostics.CreateRequestFailedException(message.Response);
139switch (message.Response.Status)
144using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
146return Response.FromValue(value, message.Response);
149throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
166switch (message.Response.Status)
171using var document = JsonDocument.Parse(message.Response.ContentStream);
173return Response.FromValue(value, message.Response);
176throw _clientDiagnostics.CreateRequestFailedException(message.Response);
222switch (message.Response.Status)
227using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
229return Response.FromValue(value, message.Response);
232throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
255switch (message.Response.Status)
260using var document = JsonDocument.Parse(message.Response.ContentStream);
262return Response.FromValue(value, message.Response);
265throw _clientDiagnostics.CreateRequestFailedException(message.Response);
301switch (message.Response.Status)
304return message.Response;
306throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
324switch (message.Response.Status)
327return message.Response;
329throw _clientDiagnostics.CreateRequestFailedException(message.Response);
361switch (message.Response.Status)
366using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
368return Response.FromValue(value, message.Response);
371throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
388switch (message.Response.Status)
393using var document = JsonDocument.Parse(message.Response.ContentStream);
395return Response.FromValue(value, message.Response);
398throw _clientDiagnostics.CreateRequestFailedException(message.Response);
444switch (message.Response.Status)
449using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
451return Response.FromValue(value, message.Response);
454throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
477switch (message.Response.Status)
482using var document = JsonDocument.Parse(message.Response.ContentStream);
484return Response.FromValue(value, message.Response);
487throw _clientDiagnostics.CreateRequestFailedException(message.Response);
533switch (message.Response.Status)
538using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
540return Response.FromValue(value, message.Response);
543throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
566switch (message.Response.Status)
571using var document = JsonDocument.Parse(message.Response.ContentStream);
573return Response.FromValue(value, message.Response);
576throw _clientDiagnostics.CreateRequestFailedException(message.Response);
618switch (message.Response.Status)
623using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
625return Response.FromValue(value, message.Response);
628throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
650switch (message.Response.Status)
655using var document = JsonDocument.Parse(message.Response.ContentStream);
657return Response.FromValue(value, message.Response);
660throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\JobsRestClient.cs (56)
72switch (message.Response.Status)
77using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
79return Response.FromValue(value, message.Response);
82throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
99switch (message.Response.Status)
104using var document = JsonDocument.Parse(message.Response.ContentStream);
106return Response.FromValue(value, message.Response);
109throw _clientDiagnostics.CreateRequestFailedException(message.Response);
133switch (message.Response.Status)
138using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
145return Response.FromValue(value, message.Response);
148throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
158switch (message.Response.Status)
163using var document = JsonDocument.Parse(message.Response.ContentStream);
170return Response.FromValue(value, message.Response);
173throw _clientDiagnostics.CreateRequestFailedException(message.Response);
205switch (message.Response.Status)
210using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
212return Response.FromValue(value, message.Response);
215throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
232switch (message.Response.Status)
237using var document = JsonDocument.Parse(message.Response.ContentStream);
239return Response.FromValue(value, message.Response);
242throw _clientDiagnostics.CreateRequestFailedException(message.Response);
274switch (message.Response.Status)
279using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
281return Response.FromValue(value, message.Response);
284throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
301switch (message.Response.Status)
306using var document = JsonDocument.Parse(message.Response.ContentStream);
308return Response.FromValue(value, message.Response);
311throw _clientDiagnostics.CreateRequestFailedException(message.Response);
352switch (message.Response.Status)
357using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
359return Response.FromValue(value, message.Response);
362throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
384switch (message.Response.Status)
389using var document = JsonDocument.Parse(message.Response.ContentStream);
391return Response.FromValue(value, message.Response);
394throw _clientDiagnostics.CreateRequestFailedException(message.Response);
427switch (message.Response.Status)
432using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
434return Response.FromValue(value, message.Response);
437throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
454switch (message.Response.Status)
459using var document = JsonDocument.Parse(message.Response.ContentStream);
461return Response.FromValue(value, message.Response);
464throw _clientDiagnostics.CreateRequestFailedException(message.Response);
498switch (message.Response.Status)
503using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
505return Response.FromValue(value, message.Response);
508throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
520switch (message.Response.Status)
525using var document = JsonDocument.Parse(message.Response.ContentStream);
527return Response.FromValue(value, message.Response);
530throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ModulesRestClient.cs (62)
76switch (message.Response.Status)
81using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
83return Response.FromValue(value, message.Response);
86throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
108switch (message.Response.Status)
113using var document = JsonDocument.Parse(message.Response.ContentStream);
115return Response.FromValue(value, message.Response);
118throw _clientDiagnostics.CreateRequestFailedException(message.Response);
171switch (message.Response.Status)
176using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
178return Response.FromValue(value, message.Response);
181throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
209switch (message.Response.Status)
214using var document = JsonDocument.Parse(message.Response.ContentStream);
216return Response.FromValue(value, message.Response);
219throw _clientDiagnostics.CreateRequestFailedException(message.Response);
272switch (message.Response.Status)
277using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
279return Response.FromValue(value, message.Response);
282throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
310switch (message.Response.Status)
315using var document = JsonDocument.Parse(message.Response.ContentStream);
317return Response.FromValue(value, message.Response);
320throw _clientDiagnostics.CreateRequestFailedException(message.Response);
353switch (message.Response.Status)
358using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
365return Response.FromValue(value, message.Response);
368throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
385switch (message.Response.Status)
390using var document = JsonDocument.Parse(message.Response.ContentStream);
397return Response.FromValue(value, message.Response);
400throw _clientDiagnostics.CreateRequestFailedException(message.Response);
439switch (message.Response.Status)
444using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
446return Response.FromValue(value, message.Response);
449throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
471switch (message.Response.Status)
476using var document = JsonDocument.Parse(message.Response.ContentStream);
478return Response.FromValue(value, message.Response);
481throw _clientDiagnostics.CreateRequestFailedException(message.Response);
534switch (message.Response.Status)
540using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
542return Response.FromValue(value, message.Response);
545throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
573switch (message.Response.Status)
579using var document = JsonDocument.Parse(message.Response.ContentStream);
581return Response.FromValue(value, message.Response);
584throw _clientDiagnostics.CreateRequestFailedException(message.Response);
627switch (message.Response.Status)
630return message.Response;
632throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
655switch (message.Response.Status)
658return message.Response;
660throw _clientDiagnostics.CreateRequestFailedException(message.Response);
709switch (message.Response.Status)
714using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
716return Response.FromValue(value, message.Response);
719throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
746switch (message.Response.Status)
751using var document = JsonDocument.Parse(message.Response.ContentStream);
753return Response.FromValue(value, message.Response);
756throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Azure.IoT.ModelsRepository (6)
Azure.IoT.TimeSeriesInsights (106)
Generated\QueryRestClient.cs (24)
70switch (message.Response.Status)
75using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
77return Response.FromValue(value, message.Response);
80throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
92switch (message.Response.Status)
97using var document = JsonDocument.Parse(message.Response.ContentStream);
99return Response.FromValue(value, message.Response);
102throw _clientDiagnostics.CreateRequestFailedException(message.Response);
148switch (message.Response.Status)
153using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
155return Response.FromValue(value, message.Response);
158throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
177switch (message.Response.Status)
182using var document = JsonDocument.Parse(message.Response.ContentStream);
184return Response.FromValue(value, message.Response);
187throw _clientDiagnostics.CreateRequestFailedException(message.Response);
238switch (message.Response.Status)
243using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
245return Response.FromValue(value, message.Response);
248throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
268switch (message.Response.Status)
273using var document = JsonDocument.Parse(message.Response.ContentStream);
275return Response.FromValue(value, message.Response);
278throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\TimeSeriesInstancesRestClient.cs (32)
70switch (message.Response.Status)
75using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
77return Response.FromValue(value, message.Response);
80throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
92switch (message.Response.Status)
97using var document = JsonDocument.Parse(message.Response.ContentStream);
99return Response.FromValue(value, message.Response);
102throw _clientDiagnostics.CreateRequestFailedException(message.Response);
143switch (message.Response.Status)
148using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
150return Response.FromValue(value, message.Response);
153throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
171switch (message.Response.Status)
176using var document = JsonDocument.Parse(message.Response.ContentStream);
178return Response.FromValue(value, message.Response);
181throw _clientDiagnostics.CreateRequestFailedException(message.Response);
222switch (message.Response.Status)
227using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
229return Response.FromValue(value, message.Response);
232throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
250switch (message.Response.Status)
255using var document = JsonDocument.Parse(message.Response.ContentStream);
257return Response.FromValue(value, message.Response);
260throw _clientDiagnostics.CreateRequestFailedException(message.Response);
306switch (message.Response.Status)
311using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
313return Response.FromValue(value, message.Response);
316throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
335switch (message.Response.Status)
340using var document = JsonDocument.Parse(message.Response.ContentStream);
342return Response.FromValue(value, message.Response);
345throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Azure.Media.VideoAnalyzer.Edge (2)
Azure.Messaging.EventGrid (36)
Azure.Messaging.WebPubSub (146)
Azure.MixedReality.Authentication (12)
Azure.MixedReality.ObjectAnchors.Conversion (32)
Generated\IngestionJobRestClient.cs (20)
78var headers = new IngestionJobCreateHeaders(message.Response);
79switch (message.Response.Status)
84using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
86return ResponseWithHeaders.FromValue(value, headers, message.Response);
89throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
103var headers = new IngestionJobCreateHeaders(message.Response);
104switch (message.Response.Status)
109using var document = JsonDocument.Parse(message.Response.ContentStream);
111return ResponseWithHeaders.FromValue(value, headers, message.Response);
114throw _clientDiagnostics.CreateRequestFailedException(message.Response);
151var headers = new IngestionJobGetHeaders(message.Response);
152switch (message.Response.Status)
157using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
159return ResponseWithHeaders.FromValue(value, headers, message.Response);
162throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
175var headers = new IngestionJobGetHeaders(message.Response);
176switch (message.Response.Status)
181using var document = JsonDocument.Parse(message.Response.ContentStream);
183return ResponseWithHeaders.FromValue(value, headers, message.Response);
186throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Azure.MixedReality.RemoteRendering (92)
Generated\RemoteRenderingRestClient.cs (90)
79var headers = new RemoteRenderingCreateConversionHeaders(message.Response);
80switch (message.Response.Status)
86using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
88return ResponseWithHeaders.FromValue(value, headers, message.Response);
91throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
114var headers = new RemoteRenderingCreateConversionHeaders(message.Response);
115switch (message.Response.Status)
121using var document = JsonDocument.Parse(message.Response.ContentStream);
123return ResponseWithHeaders.FromValue(value, headers, message.Response);
126throw _clientDiagnostics.CreateRequestFailedException(message.Response);
161var headers = new RemoteRenderingGetConversionHeaders(message.Response);
162switch (message.Response.Status)
167using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
169return ResponseWithHeaders.FromValue(value, headers, message.Response);
172throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
190var headers = new RemoteRenderingGetConversionHeaders(message.Response);
191switch (message.Response.Status)
196using var document = JsonDocument.Parse(message.Response.ContentStream);
198return ResponseWithHeaders.FromValue(value, headers, message.Response);
201throw _clientDiagnostics.CreateRequestFailedException(message.Response);
228var headers = new RemoteRenderingListConversionsHeaders(message.Response);
229switch (message.Response.Status)
234using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
236return ResponseWithHeaders.FromValue(value, headers, message.Response);
239throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
250var headers = new RemoteRenderingListConversionsHeaders(message.Response);
251switch (message.Response.Status)
256using var document = JsonDocument.Parse(message.Response.ContentStream);
258return ResponseWithHeaders.FromValue(value, headers, message.Response);
261throw _clientDiagnostics.CreateRequestFailedException(message.Response);
305var headers = new RemoteRenderingCreateSessionHeaders(message.Response);
306switch (message.Response.Status)
312using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
314return ResponseWithHeaders.FromValue(value, headers, message.Response);
317throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
340var headers = new RemoteRenderingCreateSessionHeaders(message.Response);
341switch (message.Response.Status)
347using var document = JsonDocument.Parse(message.Response.ContentStream);
349return ResponseWithHeaders.FromValue(value, headers, message.Response);
352throw _clientDiagnostics.CreateRequestFailedException(message.Response);
387switch (message.Response.Status)
392using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
394return Response.FromValue(value, message.Response);
397throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
415switch (message.Response.Status)
420using var document = JsonDocument.Parse(message.Response.ContentStream);
422return Response.FromValue(value, message.Response);
425throw _clientDiagnostics.CreateRequestFailedException(message.Response);
469switch (message.Response.Status)
474using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
476return Response.FromValue(value, message.Response);
479throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
502switch (message.Response.Status)
507using var document = JsonDocument.Parse(message.Response.ContentStream);
509return Response.FromValue(value, message.Response);
512throw _clientDiagnostics.CreateRequestFailedException(message.Response);
548var headers = new RemoteRenderingStopSessionHeaders(message.Response);
549switch (message.Response.Status)
552return ResponseWithHeaders.FromValue(headers, message.Response);
554throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
572var headers = new RemoteRenderingStopSessionHeaders(message.Response);
573switch (message.Response.Status)
576return ResponseWithHeaders.FromValue(headers, message.Response);
578throw _clientDiagnostics.CreateRequestFailedException(message.Response);
605switch (message.Response.Status)
610using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
612return Response.FromValue(value, message.Response);
615throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
626switch (message.Response.Status)
631using var document = JsonDocument.Parse(message.Response.ContentStream);
633return Response.FromValue(value, message.Response);
636throw _clientDiagnostics.CreateRequestFailedException(message.Response);
667var headers = new RemoteRenderingListConversionsHeaders(message.Response);
668switch (message.Response.Status)
673using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
675return ResponseWithHeaders.FromValue(value, headers, message.Response);
678throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
696var headers = new RemoteRenderingListConversionsHeaders(message.Response);
697switch (message.Response.Status)
702using var document = JsonDocument.Parse(message.Response.ContentStream);
704return ResponseWithHeaders.FromValue(value, headers, message.Response);
707throw _clientDiagnostics.CreateRequestFailedException(message.Response);
738switch (message.Response.Status)
743using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
745return Response.FromValue(value, message.Response);
748throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
766switch (message.Response.Status)
771using var document = JsonDocument.Parse(message.Response.ContentStream);
773return Response.FromValue(value, message.Response);
776throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Azure.Monitor.OpenTelemetry.Exporter (14)
Azure.Monitor.Query (62)
Generated\QueryRestClient.cs (24)
75switch (message.Response.Status)
80using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
82return Response.FromValue(value, message.Response);
85throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
108switch (message.Response.Status)
113using var document = JsonDocument.Parse(message.Response.ContentStream);
115return Response.FromValue(value, message.Response);
118throw _clientDiagnostics.CreateRequestFailedException(message.Response);
164switch (message.Response.Status)
169using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
171return Response.FromValue(value, message.Response);
174throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
197switch (message.Response.Status)
202using var document = JsonDocument.Parse(message.Response.ContentStream);
204return Response.FromValue(value, message.Response);
207throw _clientDiagnostics.CreateRequestFailedException(message.Response);
241switch (message.Response.Status)
246using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
248return Response.FromValue(value, message.Response);
251throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
268switch (message.Response.Status)
273using var document = JsonDocument.Parse(message.Response.ContentStream);
275return Response.FromValue(value, message.Response);
278throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Azure.Quantum.Jobs (80)
Generated\JobsRestClient.cs (38)
71switch (message.Response.Status)
76using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
78return Response.FromValue(value, message.Response);
81throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
91switch (message.Response.Status)
96using var document = JsonDocument.Parse(message.Response.ContentStream);
98return Response.FromValue(value, message.Response);
101throw _clientDiagnostics.CreateRequestFailedException(message.Response);
138switch (message.Response.Status)
143using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
145return Response.FromValue(value, message.Response);
148throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
165switch (message.Response.Status)
170using var document = JsonDocument.Parse(message.Response.ContentStream);
172return Response.FromValue(value, message.Response);
175throw _clientDiagnostics.CreateRequestFailedException(message.Response);
221switch (message.Response.Status)
227using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
229return Response.FromValue(value, message.Response);
232throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
254switch (message.Response.Status)
260using var document = JsonDocument.Parse(message.Response.ContentStream);
262return Response.FromValue(value, message.Response);
265throw _clientDiagnostics.CreateRequestFailedException(message.Response);
302switch (message.Response.Status)
305return message.Response;
307throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
324switch (message.Response.Status)
327return message.Response;
329throw _clientDiagnostics.CreateRequestFailedException(message.Response);
359switch (message.Response.Status)
364using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
366return Response.FromValue(value, message.Response);
369throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
386switch (message.Response.Status)
391using var document = JsonDocument.Parse(message.Response.ContentStream);
393return Response.FromValue(value, message.Response);
396throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Azure.ResourceManager (506)
Custom\Resources\RestOperations\ProviderRestOperations.cs (24)
49switch (message.Response.Status)
54using var document = JsonDocument.Parse(message.Response.ContentStream);
56return Response.FromValue(value, message.Response);
59throw _clientDiagnostics.CreateRequestFailedException(message.Response);
77switch (message.Response.Status)
82using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
84return Response.FromValue(value, message.Response);
87throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
136switch (message.Response.Status)
141using var document = JsonDocument.Parse(message.Response.ContentStream);
143return Response.FromValue(value, message.Response);
146throw _clientDiagnostics.CreateRequestFailedException(message.Response);
158switch (message.Response.Status)
163using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
165return Response.FromValue(value, message.Response);
168throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
185switch (message.Response.Status)
190using var document = JsonDocument.Parse(message.Response.ContentStream);
192return Response.FromValue(value, message.Response);
195throw _clientDiagnostics.CreateRequestFailedException(message.Response);
212switch (message.Response.Status)
217using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
219return Response.FromValue(value, message.Response);
222throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
PsuedoGenerated\ManagementGroup\RestOperations\ManagementGroupsRestOperations.cs (72)
87switch (message.Response.Status)
92using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
94return Response.FromValue(value, message.Response);
97throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
116switch (message.Response.Status)
121using var document = JsonDocument.Parse(message.Response.ContentStream);
123return Response.FromValue(value, message.Response);
126throw _clientDiagnostics.CreateRequestFailedException(message.Response);
182switch (message.Response.Status)
187using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
189return Response.FromValue(value, message.Response);
192throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
216switch (message.Response.Status)
221using var document = JsonDocument.Parse(message.Response.ContentStream);
223return Response.FromValue(value, message.Response);
226throw _clientDiagnostics.CreateRequestFailedException(message.Response);
277var headers = new ManagementGroupsCreateOrUpdateHeaders(message.Response);
278switch (message.Response.Status)
282return ResponseWithHeaders.FromValue(headers, message.Response);
284throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
311var headers = new ManagementGroupsCreateOrUpdateHeaders(message.Response);
312switch (message.Response.Status)
316return ResponseWithHeaders.FromValue(headers, message.Response);
318throw _clientDiagnostics.CreateRequestFailedException(message.Response);
368switch (message.Response.Status)
373using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
375return Response.FromValue(value, message.Response);
378throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
404switch (message.Response.Status)
409using var document = JsonDocument.Parse(message.Response.ContentStream);
411return Response.FromValue(value, message.Response);
414throw _clientDiagnostics.CreateRequestFailedException(message.Response);
456var headers = new ManagementGroupsDeleteHeaders(message.Response);
457switch (message.Response.Status)
461return ResponseWithHeaders.FromValue(headers, message.Response);
463throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
485var headers = new ManagementGroupsDeleteHeaders(message.Response);
486switch (message.Response.Status)
490return ResponseWithHeaders.FromValue(headers, message.Response);
492throw _clientDiagnostics.CreateRequestFailedException(message.Response);
543switch (message.Response.Status)
548using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
550return Response.FromValue(value, message.Response);
553throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
579switch (message.Response.Status)
584using var document = JsonDocument.Parse(message.Response.ContentStream);
586return Response.FromValue(value, message.Response);
589throw _clientDiagnostics.CreateRequestFailedException(message.Response);
633switch (message.Response.Status)
638using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
640return Response.FromValue(value, message.Response);
643throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
669switch (message.Response.Status)
674using var document = JsonDocument.Parse(message.Response.ContentStream);
676return Response.FromValue(value, message.Response);
679throw _clientDiagnostics.CreateRequestFailedException(message.Response);
724switch (message.Response.Status)
729using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
731return Response.FromValue(value, message.Response);
734throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
765switch (message.Response.Status)
770using var document = JsonDocument.Parse(message.Response.ContentStream);
772return Response.FromValue(value, message.Response);
775throw _clientDiagnostics.CreateRequestFailedException(message.Response);
811switch (message.Response.Status)
816using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
818return Response.FromValue(value, message.Response);
821throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
838switch (message.Response.Status)
843using var document = JsonDocument.Parse(message.Response.ContentStream);
845return Response.FromValue(value, message.Response);
848throw _clientDiagnostics.CreateRequestFailedException(message.Response);
PsuedoGenerated\Resources\RestOperations\FeaturesRestOperations.cs (58)
72switch (message.Response.Status)
77using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
79return Response.FromValue(value, message.Response);
82throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
92switch (message.Response.Status)
97using var document = JsonDocument.Parse(message.Response.ContentStream);
99return Response.FromValue(value, message.Response);
102throw _clientDiagnostics.CreateRequestFailedException(message.Response);
138switch (message.Response.Status)
143using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
145return Response.FromValue(value, message.Response);
148throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
165switch (message.Response.Status)
170using var document = JsonDocument.Parse(message.Response.ContentStream);
172return Response.FromValue(value, message.Response);
175throw _clientDiagnostics.CreateRequestFailedException(message.Response);
217switch (message.Response.Status)
222using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
224return Response.FromValue(value, message.Response);
228return Response.FromValue<FeatureData>(null, message.Response);
231throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
253switch (message.Response.Status)
258using var document = JsonDocument.Parse(message.Response.ContentStream);
260return Response.FromValue(value, message.Response);
264return Response.FromValue<FeatureData>(null, message.Response);
267throw _clientDiagnostics.CreateRequestFailedException(message.Response);
310switch (message.Response.Status)
315using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
317return Response.FromValue(value, message.Response);
320throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
342switch (message.Response.Status)
347using var document = JsonDocument.Parse(message.Response.ContentStream);
349return Response.FromValue(value, message.Response);
352throw _clientDiagnostics.CreateRequestFailedException(message.Response);
395switch (message.Response.Status)
400using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
402return Response.FromValue(value, message.Response);
405throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
427switch (message.Response.Status)
432using var document = JsonDocument.Parse(message.Response.ContentStream);
434return Response.FromValue(value, message.Response);
437throw _clientDiagnostics.CreateRequestFailedException(message.Response);
468switch (message.Response.Status)
473using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
475return Response.FromValue(value, message.Response);
478throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
495switch (message.Response.Status)
500using var document = JsonDocument.Parse(message.Response.ContentStream);
502return Response.FromValue(value, message.Response);
505throw _clientDiagnostics.CreateRequestFailedException(message.Response);
541switch (message.Response.Status)
546using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
548return Response.FromValue(value, message.Response);
551throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
573switch (message.Response.Status)
578using var document = JsonDocument.Parse(message.Response.ContentStream);
580return Response.FromValue(value, message.Response);
583throw _clientDiagnostics.CreateRequestFailedException(message.Response);
PsuedoGenerated\Resources\RestOperations\ProviderRestOperations.cs (42)
82switch (message.Response.Status)
87using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
89return Response.FromValue(value, message.Response);
92throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
109switch (message.Response.Status)
114using var document = JsonDocument.Parse(message.Response.ContentStream);
116return Response.FromValue(value, message.Response);
119throw _clientDiagnostics.CreateRequestFailedException(message.Response);
155switch (message.Response.Status)
160using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
162return Response.FromValue(value, message.Response);
165throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
182switch (message.Response.Status)
187using var document = JsonDocument.Parse(message.Response.ContentStream);
189return Response.FromValue(value, message.Response);
192throw _clientDiagnostics.CreateRequestFailedException(message.Response);
229switch (message.Response.Status)
234using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
236return Response.FromValue(value, message.Response);
239throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
251switch (message.Response.Status)
256using var document = JsonDocument.Parse(message.Response.ContentStream);
258return Response.FromValue(value, message.Response);
261throw _clientDiagnostics.CreateRequestFailedException(message.Response);
301switch (message.Response.Status)
306using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
308return Response.FromValue(value, message.Response);
312return Response.FromValue<ProviderData>(null, message.Response);
315throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
333switch (message.Response.Status)
338using var document = JsonDocument.Parse(message.Response.ContentStream);
340return Response.FromValue(value, message.Response);
344return Response.FromValue<ProviderData>(null, message.Response);
347throw _clientDiagnostics.CreateRequestFailedException(message.Response);
380switch (message.Response.Status)
385using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
387return Response.FromValue(value, message.Response);
390throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
409switch (message.Response.Status)
414using var document = JsonDocument.Parse(message.Response.ContentStream);
416return Response.FromValue(value, message.Response);
419throw _clientDiagnostics.CreateRequestFailedException(message.Response);
PsuedoGenerated\Resources\RestOperations\ResourceGroupsRestOperations.cs (62)
80switch (message.Response.Status)
85return Response.FromValue(value, message.Response);
90return Response.FromValue(value, message.Response);
93throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
110switch (message.Response.Status)
115return Response.FromValue(value, message.Response);
120return Response.FromValue(value, message.Response);
123throw _clientDiagnostics.CreateRequestFailedException(message.Response);
167switch (message.Response.Status)
173using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
175return Response.FromValue(value, message.Response);
178throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
200switch (message.Response.Status)
206using var document = JsonDocument.Parse(message.Response.ContentStream);
208return Response.FromValue(value, message.Response);
211throw _clientDiagnostics.CreateRequestFailedException(message.Response);
246switch (message.Response.Status)
250return message.Response;
252throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
269switch (message.Response.Status)
273return message.Response;
275throw _clientDiagnostics.CreateRequestFailedException(message.Response);
310switch (message.Response.Status)
315using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
317return Response.FromValue(value, message.Response);
321return Response.FromValue<ResourceGroupData>(null, message.Response);
324throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
341switch (message.Response.Status)
346using var document = JsonDocument.Parse(message.Response.ContentStream);
348return Response.FromValue(value, message.Response);
352return Response.FromValue<ResourceGroupData>(null, message.Response);
355throw _clientDiagnostics.CreateRequestFailedException(message.Response);
399switch (message.Response.Status)
405using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
407return Response.FromValue(value, message.Response);
410throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
432switch (message.Response.Status)
437using var document = JsonDocument.Parse(message.Response.ContentStream);
439return Response.FromValue(value, message.Response);
442throw _clientDiagnostics.CreateRequestFailedException(message.Response);
487switch (message.Response.Status)
491return message.Response;
493throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
515switch (message.Response.Status)
519return message.Response;
521throw _clientDiagnostics.CreateRequestFailedException(message.Response);
558switch (message.Response.Status)
563using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
565return Response.FromValue(value, message.Response);
568throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
580switch (message.Response.Status)
585using var document = JsonDocument.Parse(message.Response.ContentStream);
587return Response.FromValue(value, message.Response);
590throw _clientDiagnostics.CreateRequestFailedException(message.Response);
623switch (message.Response.Status)
628using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
630return Response.FromValue(value, message.Response);
633throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
652switch (message.Response.Status)
657using var document = JsonDocument.Parse(message.Response.ContentStream);
659return Response.FromValue(value, message.Response);
662throw _clientDiagnostics.CreateRequestFailedException(message.Response);
PsuedoGenerated\Resources\RestOperations\ResourcesRestOperations.cs (114)
96switch (message.Response.Status)
101using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
103return Response.FromValue(value, message.Response);
106throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
126switch (message.Response.Status)
131using var document = JsonDocument.Parse(message.Response.ContentStream);
133return Response.FromValue(value, message.Response);
136throw _clientDiagnostics.CreateRequestFailedException(message.Response);
181switch (message.Response.Status)
185return message.Response;
187throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
209switch (message.Response.Status)
213return message.Response;
215throw _clientDiagnostics.CreateRequestFailedException(message.Response);
260switch (message.Response.Status)
264return message.Response;
266throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
288switch (message.Response.Status)
292return message.Response;
294throw _clientDiagnostics.CreateRequestFailedException(message.Response);
336switch (message.Response.Status)
341using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
343return Response.FromValue(value, message.Response);
346throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
359switch (message.Response.Status)
364using var document = JsonDocument.Parse(message.Response.ContentStream);
366return Response.FromValue(value, message.Response);
369throw _clientDiagnostics.CreateRequestFailedException(message.Response);
437switch (message.Response.Status)
442return Response.FromValue(value, message.Response);
447return Response.FromValue(value, message.Response);
450throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
492switch (message.Response.Status)
497return Response.FromValue(value, message.Response);
502return Response.FromValue(value, message.Response);
505throw _clientDiagnostics.CreateRequestFailedException(message.Response);
573switch (message.Response.Status)
578return message.Response;
580throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
622switch (message.Response.Status)
627return message.Response;
629throw _clientDiagnostics.CreateRequestFailedException(message.Response);
706switch (message.Response.Status)
711return message.Response;
713throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
760switch (message.Response.Status)
765return message.Response;
767throw _clientDiagnostics.CreateRequestFailedException(message.Response);
844switch (message.Response.Status)
848return message.Response;
850throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
897switch (message.Response.Status)
901return message.Response;
903throw _clientDiagnostics.CreateRequestFailedException(message.Response);
971switch (message.Response.Status)
976using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
978return Response.FromValue(value, message.Response);
981throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1023switch (message.Response.Status)
1028using var document = JsonDocument.Parse(message.Response.ContentStream);
1030return Response.FromValue(value, message.Response);
1033throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1071switch (message.Response.Status)
1076return Response.FromValue(value, message.Response);
1081return Response.FromValue(value, message.Response);
1084throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1106switch (message.Response.Status)
1111return Response.FromValue(value, message.Response);
1116return Response.FromValue(value, message.Response);
1119throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1157switch (message.Response.Status)
1162return message.Response;
1164throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1186switch (message.Response.Status)
1191return message.Response;
1193throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1240switch (message.Response.Status)
1245return message.Response;
1247throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1274switch (message.Response.Status)
1279return message.Response;
1281throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1328switch (message.Response.Status)
1332return message.Response;
1334throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1361switch (message.Response.Status)
1365return message.Response;
1367throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1405switch (message.Response.Status)
1410using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1412return Response.FromValue(value, message.Response);
1416return Response.FromValue<GenericResourceData>(null, message.Response);
1419throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1441switch (message.Response.Status)
1446using var document = JsonDocument.Parse(message.Response.ContentStream);
1448return Response.FromValue(value, message.Response);
1452return Response.FromValue<GenericResourceData>(null, message.Response);
1455throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1494switch (message.Response.Status)
1499using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1501return Response.FromValue(value, message.Response);
1504throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1529switch (message.Response.Status)
1534using var document = JsonDocument.Parse(message.Response.ContentStream);
1536return Response.FromValue(value, message.Response);
1539throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1573switch (message.Response.Status)
1578using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1580return Response.FromValue(value, message.Response);
1583throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1603switch (message.Response.Status)
1608using var document = JsonDocument.Parse(message.Response.ContentStream);
1610return Response.FromValue(value, message.Response);
1613throw _clientDiagnostics.CreateRequestFailedException(message.Response);
PsuedoGenerated\Resources\RestOperations\SubscriptionsRestOperations.cs (34)
67switch (message.Response.Status)
72using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
74return Response.FromValue(value, message.Response);
77throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
94switch (message.Response.Status)
99using var document = JsonDocument.Parse(message.Response.ContentStream);
101return Response.FromValue(value, message.Response);
104throw _clientDiagnostics.CreateRequestFailedException(message.Response);
137switch (message.Response.Status)
142using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
144return Response.FromValue(value, message.Response);
148return Response.FromValue<SubscriptionData>(null, message.Response);
151throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
168switch (message.Response.Status)
173using var document = JsonDocument.Parse(message.Response.ContentStream);
175return Response.FromValue(value, message.Response);
179return Response.FromValue<SubscriptionData>(null, message.Response);
182throw _clientDiagnostics.CreateRequestFailedException(message.Response);
207switch (message.Response.Status)
212using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
214return Response.FromValue(value, message.Response);
217throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
227switch (message.Response.Status)
232using var document = JsonDocument.Parse(message.Response.ContentStream);
234return Response.FromValue(value, message.Response);
237throw _clientDiagnostics.CreateRequestFailedException(message.Response);
268switch (message.Response.Status)
273using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
275return Response.FromValue(value, message.Response);
278throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
295switch (message.Response.Status)
300using var document = JsonDocument.Parse(message.Response.ContentStream);
302return Response.FromValue(value, message.Response);
305throw _clientDiagnostics.CreateRequestFailedException(message.Response);
PsuedoGenerated\Resources\RestOperations\TagRestOperations.cs (74)
83switch (message.Response.Status)
87return message.Response;
89throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
111switch (message.Response.Status)
115return message.Response;
117throw _clientDiagnostics.CreateRequestFailedException(message.Response);
159switch (message.Response.Status)
165using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
167return Response.FromValue(value, message.Response);
170throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
192switch (message.Response.Status)
198using var document = JsonDocument.Parse(message.Response.ContentStream);
200return Response.FromValue(value, message.Response);
203throw _clientDiagnostics.CreateRequestFailedException(message.Response);
238switch (message.Response.Status)
244using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
246return Response.FromValue(value, message.Response);
249throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
266switch (message.Response.Status)
272using var document = JsonDocument.Parse(message.Response.ContentStream);
274return Response.FromValue(value, message.Response);
277throw _clientDiagnostics.CreateRequestFailedException(message.Response);
312switch (message.Response.Status)
316return message.Response;
318throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
335switch (message.Response.Status)
339return message.Response;
341throw _clientDiagnostics.CreateRequestFailedException(message.Response);
368switch (message.Response.Status)
373using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
375return Response.FromValue(value, message.Response);
378throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
388switch (message.Response.Status)
393using var document = JsonDocument.Parse(message.Response.ContentStream);
395return Response.FromValue(value, message.Response);
398throw _clientDiagnostics.CreateRequestFailedException(message.Response);
429switch (message.Response.Status)
434using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
436return Response.FromValue(value, message.Response);
439throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
456switch (message.Response.Status)
461using var document = JsonDocument.Parse(message.Response.ContentStream);
463return Response.FromValue(value, message.Response);
466throw _clientDiagnostics.CreateRequestFailedException(message.Response);
509switch (message.Response.Status)
514using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
516return Response.FromValue(value, message.Response);
519throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
541switch (message.Response.Status)
546using var document = JsonDocument.Parse(message.Response.ContentStream);
548return Response.FromValue(value, message.Response);
551throw _clientDiagnostics.CreateRequestFailedException(message.Response);
594switch (message.Response.Status)
599using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
601return Response.FromValue(value, message.Response);
604throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
626switch (message.Response.Status)
631using var document = JsonDocument.Parse(message.Response.ContentStream);
633return Response.FromValue(value, message.Response);
636throw _clientDiagnostics.CreateRequestFailedException(message.Response);
670switch (message.Response.Status)
675using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
677return Response.FromValue(value, message.Response);
680throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
697switch (message.Response.Status)
702using var document = JsonDocument.Parse(message.Response.ContentStream);
704return Response.FromValue(value, message.Response);
707throw _clientDiagnostics.CreateRequestFailedException(message.Response);
741switch (message.Response.Status)
744return message.Response;
746throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
763switch (message.Response.Status)
766return message.Response;
768throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Azure.ResourceManager.AppConfiguration (176)
Generated\ConfigurationStoresRestOperations.cs (90)
80switch (message.Response.Status)
85using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
87return Response.FromValue(value, message.Response);
90throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
101switch (message.Response.Status)
106using var document = JsonDocument.Parse(message.Response.ContentStream);
108return Response.FromValue(value, message.Response);
111throw _clientDiagnostics.CreateRequestFailedException(message.Response);
151switch (message.Response.Status)
156using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
158return Response.FromValue(value, message.Response);
161throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
179switch (message.Response.Status)
184using var document = JsonDocument.Parse(message.Response.ContentStream);
186return Response.FromValue(value, message.Response);
189throw _clientDiagnostics.CreateRequestFailedException(message.Response);
230switch (message.Response.Status)
235using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
237return Response.FromValue(value, message.Response);
240throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
262switch (message.Response.Status)
267using var document = JsonDocument.Parse(message.Response.ContentStream);
269return Response.FromValue(value, message.Response);
272throw _clientDiagnostics.CreateRequestFailedException(message.Response);
322switch (message.Response.Status)
326return message.Response;
328throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
355switch (message.Response.Status)
359return message.Response;
361throw _clientDiagnostics.CreateRequestFailedException(message.Response);
402switch (message.Response.Status)
407return message.Response;
409throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
431switch (message.Response.Status)
436return message.Response;
438throw _clientDiagnostics.CreateRequestFailedException(message.Response);
488switch (message.Response.Status)
492return message.Response;
494throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
521switch (message.Response.Status)
525return message.Response;
527throw _clientDiagnostics.CreateRequestFailedException(message.Response);
574switch (message.Response.Status)
579using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
581return Response.FromValue(value, message.Response);
584throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
607switch (message.Response.Status)
612using var document = JsonDocument.Parse(message.Response.ContentStream);
614return Response.FromValue(value, message.Response);
617throw _clientDiagnostics.CreateRequestFailedException(message.Response);
668switch (message.Response.Status)
673using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
675return Response.FromValue(value, message.Response);
678throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
705switch (message.Response.Status)
710using var document = JsonDocument.Parse(message.Response.ContentStream);
712return Response.FromValue(value, message.Response);
715throw _clientDiagnostics.CreateRequestFailedException(message.Response);
766switch (message.Response.Status)
771using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
773return Response.FromValue(value, message.Response);
776throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
803switch (message.Response.Status)
808using var document = JsonDocument.Parse(message.Response.ContentStream);
810return Response.FromValue(value, message.Response);
813throw _clientDiagnostics.CreateRequestFailedException(message.Response);
844switch (message.Response.Status)
849using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
851return Response.FromValue(value, message.Response);
854throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
872switch (message.Response.Status)
877using var document = JsonDocument.Parse(message.Response.ContentStream);
879return Response.FromValue(value, message.Response);
882throw _clientDiagnostics.CreateRequestFailedException(message.Response);
918switch (message.Response.Status)
923using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
925return Response.FromValue(value, message.Response);
928throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
951switch (message.Response.Status)
956using var document = JsonDocument.Parse(message.Response.ContentStream);
958return Response.FromValue(value, message.Response);
961throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1002switch (message.Response.Status)
1007using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1009return Response.FromValue(value, message.Response);
1012throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1040switch (message.Response.Status)
1045using var document = JsonDocument.Parse(message.Response.ContentStream);
1047return Response.FromValue(value, message.Response);
1050throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\PrivateEndpointConnectionsRestOperations.cs (36)
91switch (message.Response.Status)
96using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
98return Response.FromValue(value, message.Response);
101throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
123switch (message.Response.Status)
128using var document = JsonDocument.Parse(message.Response.ContentStream);
130return Response.FromValue(value, message.Response);
133throw _clientDiagnostics.CreateRequestFailedException(message.Response);
181switch (message.Response.Status)
186using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
188return Response.FromValue(value, message.Response);
191throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
218switch (message.Response.Status)
223using var document = JsonDocument.Parse(message.Response.ContentStream);
225return Response.FromValue(value, message.Response);
228throw _clientDiagnostics.CreateRequestFailedException(message.Response);
285switch (message.Response.Status)
289return message.Response;
291throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
323switch (message.Response.Status)
327return message.Response;
329throw _clientDiagnostics.CreateRequestFailedException(message.Response);
377switch (message.Response.Status)
382return message.Response;
384throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
411switch (message.Response.Status)
416return message.Response;
418throw _clientDiagnostics.CreateRequestFailedException(message.Response);
458switch (message.Response.Status)
463using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
465return Response.FromValue(value, message.Response);
468throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
495switch (message.Response.Status)
500using var document = JsonDocument.Parse(message.Response.ContentStream);
502return Response.FromValue(value, message.Response);
505throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\PrivateLinkResourcesRestOperations.cs (24)
91switch (message.Response.Status)
96using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
98return Response.FromValue(value, message.Response);
101throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
123switch (message.Response.Status)
128using var document = JsonDocument.Parse(message.Response.ContentStream);
130return Response.FromValue(value, message.Response);
133throw _clientDiagnostics.CreateRequestFailedException(message.Response);
181switch (message.Response.Status)
186using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
188return Response.FromValue(value, message.Response);
191throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
218switch (message.Response.Status)
223using var document = JsonDocument.Parse(message.Response.ContentStream);
225return Response.FromValue(value, message.Response);
228throw _clientDiagnostics.CreateRequestFailedException(message.Response);
268switch (message.Response.Status)
273using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
275return Response.FromValue(value, message.Response);
278throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
305switch (message.Response.Status)
310using var document = JsonDocument.Parse(message.Response.ContentStream);
312return Response.FromValue(value, message.Response);
315throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations.cs (24)
86switch (message.Response.Status)
91using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
93return Response.FromValue(value, message.Response);
96throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
113switch (message.Response.Status)
118using var document = JsonDocument.Parse(message.Response.ContentStream);
120return Response.FromValue(value, message.Response);
123throw _clientDiagnostics.CreateRequestFailedException(message.Response);
152switch (message.Response.Status)
157using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
159return Response.FromValue(value, message.Response);
162throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
173switch (message.Response.Status)
178using var document = JsonDocument.Parse(message.Response.ContentStream);
180return Response.FromValue(value, message.Response);
183throw _clientDiagnostics.CreateRequestFailedException(message.Response);
214switch (message.Response.Status)
219using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
221return Response.FromValue(value, message.Response);
224throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
242switch (message.Response.Status)
247using var document = JsonDocument.Parse(message.Response.ContentStream);
249return Response.FromValue(value, message.Response);
252throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Azure.ResourceManager.Communication (122)
Generated\CommunicationServiceRestOperations.cs (96)
83switch (message.Response.Status)
88using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
90return Response.FromValue(value, message.Response);
93throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
104switch (message.Response.Status)
109using var document = JsonDocument.Parse(message.Response.ContentStream);
111return Response.FromValue(value, message.Response);
114throw _clientDiagnostics.CreateRequestFailedException(message.Response);
164switch (message.Response.Status)
169using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
171return Response.FromValue(value, message.Response);
174throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
197switch (message.Response.Status)
202using var document = JsonDocument.Parse(message.Response.ContentStream);
204return Response.FromValue(value, message.Response);
207throw _clientDiagnostics.CreateRequestFailedException(message.Response);
233switch (message.Response.Status)
238using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
240return Response.FromValue(value, message.Response);
243throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
253switch (message.Response.Status)
258using var document = JsonDocument.Parse(message.Response.ContentStream);
260return Response.FromValue(value, message.Response);
263throw _clientDiagnostics.CreateRequestFailedException(message.Response);
298switch (message.Response.Status)
303using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
305return Response.FromValue(value, message.Response);
308throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
325switch (message.Response.Status)
330using var document = JsonDocument.Parse(message.Response.ContentStream);
332return Response.FromValue(value, message.Response);
335throw _clientDiagnostics.CreateRequestFailedException(message.Response);
384switch (message.Response.Status)
389using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
391return Response.FromValue(value, message.Response);
394throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
417switch (message.Response.Status)
422using var document = JsonDocument.Parse(message.Response.ContentStream);
424return Response.FromValue(value, message.Response);
427throw _clientDiagnostics.CreateRequestFailedException(message.Response);
468switch (message.Response.Status)
473using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
475return Response.FromValue(value, message.Response);
478throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
500switch (message.Response.Status)
505using var document = JsonDocument.Parse(message.Response.ContentStream);
507return Response.FromValue(value, message.Response);
510throw _clientDiagnostics.CreateRequestFailedException(message.Response);
559var headers = new CommunicationServiceCreateOrUpdateHeaders(message.Response);
560switch (message.Response.Status)
564return ResponseWithHeaders.FromValue(headers, message.Response);
566throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
589var headers = new CommunicationServiceCreateOrUpdateHeaders(message.Response);
590switch (message.Response.Status)
594return ResponseWithHeaders.FromValue(headers, message.Response);
596throw _clientDiagnostics.CreateRequestFailedException(message.Response);
637var headers = new CommunicationServiceDeleteHeaders(message.Response);
638switch (message.Response.Status)
643return ResponseWithHeaders.FromValue(headers, message.Response);
645throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
667var headers = new CommunicationServiceDeleteHeaders(message.Response);
668switch (message.Response.Status)
673return ResponseWithHeaders.FromValue(headers, message.Response);
675throw _clientDiagnostics.CreateRequestFailedException(message.Response);
717switch (message.Response.Status)
722using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
724return Response.FromValue(value, message.Response);
727throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
749switch (message.Response.Status)
754using var document = JsonDocument.Parse(message.Response.ContentStream);
756return Response.FromValue(value, message.Response);
759throw _clientDiagnostics.CreateRequestFailedException(message.Response);
810switch (message.Response.Status)
815using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
817return Response.FromValue(value, message.Response);
820throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
847switch (message.Response.Status)
852using var document = JsonDocument.Parse(message.Response.ContentStream);
854return Response.FromValue(value, message.Response);
857throw _clientDiagnostics.CreateRequestFailedException(message.Response);
887switch (message.Response.Status)
892using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
894return Response.FromValue(value, message.Response);
897throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
914switch (message.Response.Status)
919using var document = JsonDocument.Parse(message.Response.ContentStream);
921return Response.FromValue(value, message.Response);
924throw _clientDiagnostics.CreateRequestFailedException(message.Response);
959switch (message.Response.Status)
964using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
966return Response.FromValue(value, message.Response);
969throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
991switch (message.Response.Status)
996using var document = JsonDocument.Parse(message.Response.ContentStream);
998return Response.FromValue(value, message.Response);
1001throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Azure.ResourceManager.Compute (2328)
Generated\RestOperations\AvailabilitySetsRestOperations.cs (72)
91switch (message.Response.Status)
96using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
98return Response.FromValue(value, message.Response);
101throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
128switch (message.Response.Status)
133using var document = JsonDocument.Parse(message.Response.ContentStream);
135return Response.FromValue(value, message.Response);
138throw _clientDiagnostics.CreateRequestFailedException(message.Response);
189switch (message.Response.Status)
194using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
196return Response.FromValue(value, message.Response);
199throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
226switch (message.Response.Status)
231using var document = JsonDocument.Parse(message.Response.ContentStream);
233return Response.FromValue(value, message.Response);
236throw _clientDiagnostics.CreateRequestFailedException(message.Response);
277switch (message.Response.Status)
281return message.Response;
283throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
305switch (message.Response.Status)
309return message.Response;
311throw _clientDiagnostics.CreateRequestFailedException(message.Response);
353switch (message.Response.Status)
358using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
360return Response.FromValue(value, message.Response);
363return Response.FromValue((AvailabilitySetData)null, message.Response);
365throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
387switch (message.Response.Status)
392using var document = JsonDocument.Parse(message.Response.ContentStream);
394return Response.FromValue(value, message.Response);
397return Response.FromValue((AvailabilitySetData)null, message.Response);
399throw _clientDiagnostics.CreateRequestFailedException(message.Response);
431switch (message.Response.Status)
436using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
438return Response.FromValue(value, message.Response);
441throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
452switch (message.Response.Status)
457using var document = JsonDocument.Parse(message.Response.ContentStream);
459return Response.FromValue(value, message.Response);
462throw _clientDiagnostics.CreateRequestFailedException(message.Response);
498switch (message.Response.Status)
503using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
505return Response.FromValue(value, message.Response);
508throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
525switch (message.Response.Status)
530using var document = JsonDocument.Parse(message.Response.ContentStream);
532return Response.FromValue(value, message.Response);
535throw _clientDiagnostics.CreateRequestFailedException(message.Response);
578switch (message.Response.Status)
583using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
585return Response.FromValue(value, message.Response);
588throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
610switch (message.Response.Status)
615using var document = JsonDocument.Parse(message.Response.ContentStream);
617return Response.FromValue(value, message.Response);
620throw _clientDiagnostics.CreateRequestFailedException(message.Response);
652switch (message.Response.Status)
657using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
659return Response.FromValue(value, message.Response);
662throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
680switch (message.Response.Status)
685using var document = JsonDocument.Parse(message.Response.ContentStream);
687return Response.FromValue(value, message.Response);
690throw _clientDiagnostics.CreateRequestFailedException(message.Response);
726switch (message.Response.Status)
731using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
733return Response.FromValue(value, message.Response);
736throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
758switch (message.Response.Status)
763using var document = JsonDocument.Parse(message.Response.ContentStream);
765return Response.FromValue(value, message.Response);
768throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\CloudServiceOperatingSystemsRestOperations.cs (48)
82switch (message.Response.Status)
87using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
89return Response.FromValue(value, message.Response);
92throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
114switch (message.Response.Status)
119using var document = JsonDocument.Parse(message.Response.ContentStream);
121return Response.FromValue(value, message.Response);
124throw _clientDiagnostics.CreateRequestFailedException(message.Response);
160switch (message.Response.Status)
165using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
167return Response.FromValue(value, message.Response);
170throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
187switch (message.Response.Status)
192using var document = JsonDocument.Parse(message.Response.ContentStream);
194return Response.FromValue(value, message.Response);
197throw _clientDiagnostics.CreateRequestFailedException(message.Response);
239switch (message.Response.Status)
244using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
246return Response.FromValue(value, message.Response);
249throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
271switch (message.Response.Status)
276using var document = JsonDocument.Parse(message.Response.ContentStream);
278return Response.FromValue(value, message.Response);
281throw _clientDiagnostics.CreateRequestFailedException(message.Response);
317switch (message.Response.Status)
322using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
324return Response.FromValue(value, message.Response);
327throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
344switch (message.Response.Status)
349using var document = JsonDocument.Parse(message.Response.ContentStream);
351return Response.FromValue(value, message.Response);
354throw _clientDiagnostics.CreateRequestFailedException(message.Response);
390switch (message.Response.Status)
395using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
397return Response.FromValue(value, message.Response);
400throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
422switch (message.Response.Status)
427using var document = JsonDocument.Parse(message.Response.ContentStream);
429return Response.FromValue(value, message.Response);
432throw _clientDiagnostics.CreateRequestFailedException(message.Response);
468switch (message.Response.Status)
473using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
475return Response.FromValue(value, message.Response);
478throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
500switch (message.Response.Status)
505using var document = JsonDocument.Parse(message.Response.ContentStream);
507return Response.FromValue(value, message.Response);
510throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\CloudServiceRoleInstancesRestOperations.cs (62)
90switch (message.Response.Status)
95return message.Response;
97throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
124switch (message.Response.Status)
129return message.Response;
131throw _clientDiagnostics.CreateRequestFailedException(message.Response);
185switch (message.Response.Status)
190using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
192return Response.FromValue(value, message.Response);
195throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
223switch (message.Response.Status)
228using var document = JsonDocument.Parse(message.Response.ContentStream);
230return Response.FromValue(value, message.Response);
233throw _clientDiagnostics.CreateRequestFailedException(message.Response);
283switch (message.Response.Status)
288using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
290return Response.FromValue(value, message.Response);
293throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
320switch (message.Response.Status)
325using var document = JsonDocument.Parse(message.Response.ContentStream);
327return Response.FromValue(value, message.Response);
330throw _clientDiagnostics.CreateRequestFailedException(message.Response);
378switch (message.Response.Status)
383using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
385return Response.FromValue(value, message.Response);
388throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
411switch (message.Response.Status)
416using var document = JsonDocument.Parse(message.Response.ContentStream);
418return Response.FromValue(value, message.Response);
421throw _clientDiagnostics.CreateRequestFailedException(message.Response);
471switch (message.Response.Status)
475return message.Response;
477throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
504switch (message.Response.Status)
508return message.Response;
510throw _clientDiagnostics.CreateRequestFailedException(message.Response);
560switch (message.Response.Status)
564return message.Response;
566throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
593switch (message.Response.Status)
597return message.Response;
599throw _clientDiagnostics.CreateRequestFailedException(message.Response);
649switch (message.Response.Status)
653return message.Response;
655throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
682switch (message.Response.Status)
686return message.Response;
688throw _clientDiagnostics.CreateRequestFailedException(message.Response);
738switch (message.Response.Status)
743return Response.FromValue(value, message.Response);
746throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
773switch (message.Response.Status)
778return Response.FromValue(value, message.Response);
781throw _clientDiagnostics.CreateRequestFailedException(message.Response);
823switch (message.Response.Status)
828using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
830return Response.FromValue(value, message.Response);
833throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
861switch (message.Response.Status)
866using var document = JsonDocument.Parse(message.Response.ContentStream);
868return Response.FromValue(value, message.Response);
871throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\CloudServiceRolesRestOperations.cs (24)
89switch (message.Response.Status)
94using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
96return Response.FromValue(value, message.Response);
99throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
126switch (message.Response.Status)
131using var document = JsonDocument.Parse(message.Response.ContentStream);
133return Response.FromValue(value, message.Response);
136throw _clientDiagnostics.CreateRequestFailedException(message.Response);
179switch (message.Response.Status)
184using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
186return Response.FromValue(value, message.Response);
189throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
211switch (message.Response.Status)
216using var document = JsonDocument.Parse(message.Response.ContentStream);
218return Response.FromValue(value, message.Response);
221throw _clientDiagnostics.CreateRequestFailedException(message.Response);
262switch (message.Response.Status)
267using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
269return Response.FromValue(value, message.Response);
272throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
299switch (message.Response.Status)
304using var document = JsonDocument.Parse(message.Response.ContentStream);
306return Response.FromValue(value, message.Response);
309throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\CloudServicesRestOperations.cs (104)
90switch (message.Response.Status)
94return message.Response;
96throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
119switch (message.Response.Status)
123return message.Response;
125throw _clientDiagnostics.CreateRequestFailedException(message.Response);
175switch (message.Response.Status)
178return message.Response;
180throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
203switch (message.Response.Status)
206return message.Response;
208throw _clientDiagnostics.CreateRequestFailedException(message.Response);
250switch (message.Response.Status)
255return message.Response;
257throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
279switch (message.Response.Status)
284return message.Response;
286throw _clientDiagnostics.CreateRequestFailedException(message.Response);
328switch (message.Response.Status)
333using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
335return Response.FromValue(value, message.Response);
338return Response.FromValue((CloudServiceData)null, message.Response);
340throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
362switch (message.Response.Status)
367using var document = JsonDocument.Parse(message.Response.ContentStream);
369return Response.FromValue(value, message.Response);
372return Response.FromValue((CloudServiceData)null, message.Response);
374throw _clientDiagnostics.CreateRequestFailedException(message.Response);
417switch (message.Response.Status)
422using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
424return Response.FromValue(value, message.Response);
427throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
449switch (message.Response.Status)
454using var document = JsonDocument.Parse(message.Response.ContentStream);
456return Response.FromValue(value, message.Response);
459throw _clientDiagnostics.CreateRequestFailedException(message.Response);
486switch (message.Response.Status)
491using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
493return Response.FromValue(value, message.Response);
496throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
506switch (message.Response.Status)
511using var document = JsonDocument.Parse(message.Response.ContentStream);
513return Response.FromValue(value, message.Response);
516throw _clientDiagnostics.CreateRequestFailedException(message.Response);
552switch (message.Response.Status)
557using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
559return Response.FromValue(value, message.Response);
562throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
579switch (message.Response.Status)
584using var document = JsonDocument.Parse(message.Response.ContentStream);
586return Response.FromValue(value, message.Response);
589throw _clientDiagnostics.CreateRequestFailedException(message.Response);
632switch (message.Response.Status)
636return message.Response;
638throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
660switch (message.Response.Status)
664return message.Response;
666throw _clientDiagnostics.CreateRequestFailedException(message.Response);
709switch (message.Response.Status)
713return message.Response;
715throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
737switch (message.Response.Status)
741return message.Response;
743throw _clientDiagnostics.CreateRequestFailedException(message.Response);
794switch (message.Response.Status)
798return message.Response;
800throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
823switch (message.Response.Status)
827return message.Response;
829throw _clientDiagnostics.CreateRequestFailedException(message.Response);
880switch (message.Response.Status)
884return message.Response;
886throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
909switch (message.Response.Status)
913return message.Response;
915throw _clientDiagnostics.CreateRequestFailedException(message.Response);
966switch (message.Response.Status)
970return message.Response;
972throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
995switch (message.Response.Status)
999return message.Response;
1001throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1052switch (message.Response.Status)
1056return message.Response;
1058throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1081switch (message.Response.Status)
1085return message.Response;
1087throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1118switch (message.Response.Status)
1123using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1125return Response.FromValue(value, message.Response);
1128throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1145switch (message.Response.Status)
1150using var document = JsonDocument.Parse(message.Response.ContentStream);
1152return Response.FromValue(value, message.Response);
1155throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1191switch (message.Response.Status)
1196using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1198return Response.FromValue(value, message.Response);
1201throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1223switch (message.Response.Status)
1228using var document = JsonDocument.Parse(message.Response.ContentStream);
1230return Response.FromValue(value, message.Response);
1233throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\CloudServicesUpdateDomainRestOperations.cs (32)
97switch (message.Response.Status)
101return message.Response;
103throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
131switch (message.Response.Status)
135return message.Response;
137throw _clientDiagnostics.CreateRequestFailedException(message.Response);
186switch (message.Response.Status)
191using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
193return Response.FromValue(value, message.Response);
196return Response.FromValue((UpdateDomainData)null, message.Response);
198throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
225switch (message.Response.Status)
230using var document = JsonDocument.Parse(message.Response.ContentStream);
232return Response.FromValue(value, message.Response);
235return Response.FromValue((UpdateDomainData)null, message.Response);
237throw _clientDiagnostics.CreateRequestFailedException(message.Response);
280switch (message.Response.Status)
285using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
287return Response.FromValue(value, message.Response);
290throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
312switch (message.Response.Status)
317using var document = JsonDocument.Parse(message.Response.ContentStream);
319return Response.FromValue(value, message.Response);
322throw _clientDiagnostics.CreateRequestFailedException(message.Response);
363switch (message.Response.Status)
368using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
370return Response.FromValue(value, message.Response);
373throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
400switch (message.Response.Status)
405using var document = JsonDocument.Parse(message.Response.ContentStream);
407return Response.FromValue(value, message.Response);
410throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\DedicatedHostGroupsRestOperations.cs (64)
91switch (message.Response.Status)
97using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
99return Response.FromValue(value, message.Response);
102throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
129switch (message.Response.Status)
135using var document = JsonDocument.Parse(message.Response.ContentStream);
137return Response.FromValue(value, message.Response);
140throw _clientDiagnostics.CreateRequestFailedException(message.Response);
191switch (message.Response.Status)
196using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
198return Response.FromValue(value, message.Response);
201throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
228switch (message.Response.Status)
233using var document = JsonDocument.Parse(message.Response.ContentStream);
235return Response.FromValue(value, message.Response);
238throw _clientDiagnostics.CreateRequestFailedException(message.Response);
279switch (message.Response.Status)
283return message.Response;
285throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
307switch (message.Response.Status)
311return message.Response;
313throw _clientDiagnostics.CreateRequestFailedException(message.Response);
360switch (message.Response.Status)
365using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
367return Response.FromValue(value, message.Response);
370return Response.FromValue((DedicatedHostGroupData)null, message.Response);
372throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
395switch (message.Response.Status)
400using var document = JsonDocument.Parse(message.Response.ContentStream);
402return Response.FromValue(value, message.Response);
405return Response.FromValue((DedicatedHostGroupData)null, message.Response);
407throw _clientDiagnostics.CreateRequestFailedException(message.Response);
443switch (message.Response.Status)
448using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
450return Response.FromValue(value, message.Response);
453throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
470switch (message.Response.Status)
475using var document = JsonDocument.Parse(message.Response.ContentStream);
477return Response.FromValue(value, message.Response);
480throw _clientDiagnostics.CreateRequestFailedException(message.Response);
507switch (message.Response.Status)
512using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
514return Response.FromValue(value, message.Response);
517throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
527switch (message.Response.Status)
532using var document = JsonDocument.Parse(message.Response.ContentStream);
534return Response.FromValue(value, message.Response);
537throw _clientDiagnostics.CreateRequestFailedException(message.Response);
573switch (message.Response.Status)
578using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
580return Response.FromValue(value, message.Response);
583throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
605switch (message.Response.Status)
610using var document = JsonDocument.Parse(message.Response.ContentStream);
612return Response.FromValue(value, message.Response);
615throw _clientDiagnostics.CreateRequestFailedException(message.Response);
646switch (message.Response.Status)
651using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
653return Response.FromValue(value, message.Response);
656throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
673switch (message.Response.Status)
678using var document = JsonDocument.Parse(message.Response.ContentStream);
680return Response.FromValue(value, message.Response);
683throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\DedicatedHostsRestOperations.cs (44)
98switch (message.Response.Status)
102return message.Response;
104throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
136switch (message.Response.Status)
140return message.Response;
142throw _clientDiagnostics.CreateRequestFailedException(message.Response);
200switch (message.Response.Status)
203return message.Response;
205throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
237switch (message.Response.Status)
240return message.Response;
242throw _clientDiagnostics.CreateRequestFailedException(message.Response);
290switch (message.Response.Status)
295return message.Response;
297throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
324switch (message.Response.Status)
329return message.Response;
331throw _clientDiagnostics.CreateRequestFailedException(message.Response);
385switch (message.Response.Status)
390using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
392return Response.FromValue(value, message.Response);
395return Response.FromValue((DedicatedHostData)null, message.Response);
397throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
425switch (message.Response.Status)
430using var document = JsonDocument.Parse(message.Response.ContentStream);
432return Response.FromValue(value, message.Response);
435return Response.FromValue((DedicatedHostData)null, message.Response);
437throw _clientDiagnostics.CreateRequestFailedException(message.Response);
480switch (message.Response.Status)
485using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
487return Response.FromValue(value, message.Response);
490throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
512switch (message.Response.Status)
517using var document = JsonDocument.Parse(message.Response.ContentStream);
519return Response.FromValue(value, message.Response);
522throw _clientDiagnostics.CreateRequestFailedException(message.Response);
563switch (message.Response.Status)
568using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
570return Response.FromValue(value, message.Response);
573throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
600switch (message.Response.Status)
605using var document = JsonDocument.Parse(message.Response.ContentStream);
607return Response.FromValue(value, message.Response);
610throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\DiskAccessesRestOperations.cs (68)
91switch (message.Response.Status)
95return message.Response;
97throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
124switch (message.Response.Status)
128return message.Response;
130throw _clientDiagnostics.CreateRequestFailedException(message.Response);
181switch (message.Response.Status)
185return message.Response;
187throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
214switch (message.Response.Status)
218return message.Response;
220throw _clientDiagnostics.CreateRequestFailedException(message.Response);
262switch (message.Response.Status)
267using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
269return Response.FromValue(value, message.Response);
272return Response.FromValue((DiskAccessData)null, message.Response);
274throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
296switch (message.Response.Status)
301using var document = JsonDocument.Parse(message.Response.ContentStream);
303return Response.FromValue(value, message.Response);
306return Response.FromValue((DiskAccessData)null, message.Response);
308throw _clientDiagnostics.CreateRequestFailedException(message.Response);
350switch (message.Response.Status)
355return message.Response;
357throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
379switch (message.Response.Status)
384return message.Response;
386throw _clientDiagnostics.CreateRequestFailedException(message.Response);
422switch (message.Response.Status)
427using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
429return Response.FromValue(value, message.Response);
432throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
449switch (message.Response.Status)
454using var document = JsonDocument.Parse(message.Response.ContentStream);
456return Response.FromValue(value, message.Response);
459throw _clientDiagnostics.CreateRequestFailedException(message.Response);
486switch (message.Response.Status)
491using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
493return Response.FromValue(value, message.Response);
496throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
506switch (message.Response.Status)
511using var document = JsonDocument.Parse(message.Response.ContentStream);
513return Response.FromValue(value, message.Response);
516throw _clientDiagnostics.CreateRequestFailedException(message.Response);
559switch (message.Response.Status)
564using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
566return Response.FromValue(value, message.Response);
569throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
591switch (message.Response.Status)
596using var document = JsonDocument.Parse(message.Response.ContentStream);
598return Response.FromValue(value, message.Response);
601throw _clientDiagnostics.CreateRequestFailedException(message.Response);
637switch (message.Response.Status)
642using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
644return Response.FromValue(value, message.Response);
647throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
669switch (message.Response.Status)
674using var document = JsonDocument.Parse(message.Response.ContentStream);
676return Response.FromValue(value, message.Response);
679throw _clientDiagnostics.CreateRequestFailedException(message.Response);
710switch (message.Response.Status)
715using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
717return Response.FromValue(value, message.Response);
720throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
737switch (message.Response.Status)
742using var document = JsonDocument.Parse(message.Response.ContentStream);
744return Response.FromValue(value, message.Response);
747throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\DiskEncryptionSetsRestOperations.cs (76)
91switch (message.Response.Status)
95return message.Response;
97throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
124switch (message.Response.Status)
128return message.Response;
130throw _clientDiagnostics.CreateRequestFailedException(message.Response);
181switch (message.Response.Status)
185return message.Response;
187throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
214switch (message.Response.Status)
218return message.Response;
220throw _clientDiagnostics.CreateRequestFailedException(message.Response);
262switch (message.Response.Status)
267using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
269return Response.FromValue(value, message.Response);
272return Response.FromValue((DiskEncryptionSetData)null, message.Response);
274throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
296switch (message.Response.Status)
301using var document = JsonDocument.Parse(message.Response.ContentStream);
303return Response.FromValue(value, message.Response);
306return Response.FromValue((DiskEncryptionSetData)null, message.Response);
308throw _clientDiagnostics.CreateRequestFailedException(message.Response);
350switch (message.Response.Status)
355return message.Response;
357throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
379switch (message.Response.Status)
384return message.Response;
386throw _clientDiagnostics.CreateRequestFailedException(message.Response);
422switch (message.Response.Status)
427using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
429return Response.FromValue(value, message.Response);
432throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
449switch (message.Response.Status)
454using var document = JsonDocument.Parse(message.Response.ContentStream);
456return Response.FromValue(value, message.Response);
459throw _clientDiagnostics.CreateRequestFailedException(message.Response);
486switch (message.Response.Status)
491using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
493return Response.FromValue(value, message.Response);
496throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
506switch (message.Response.Status)
511using var document = JsonDocument.Parse(message.Response.ContentStream);
513return Response.FromValue(value, message.Response);
516throw _clientDiagnostics.CreateRequestFailedException(message.Response);
559switch (message.Response.Status)
564using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
566return Response.FromValue(value, message.Response);
569throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
591switch (message.Response.Status)
596using var document = JsonDocument.Parse(message.Response.ContentStream);
598return Response.FromValue(value, message.Response);
601throw _clientDiagnostics.CreateRequestFailedException(message.Response);
637switch (message.Response.Status)
642using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
644return Response.FromValue(value, message.Response);
647throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
669switch (message.Response.Status)
674using var document = JsonDocument.Parse(message.Response.ContentStream);
676return Response.FromValue(value, message.Response);
679throw _clientDiagnostics.CreateRequestFailedException(message.Response);
710switch (message.Response.Status)
715using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
717return Response.FromValue(value, message.Response);
720throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
737switch (message.Response.Status)
742using var document = JsonDocument.Parse(message.Response.ContentStream);
744return Response.FromValue(value, message.Response);
747throw _clientDiagnostics.CreateRequestFailedException(message.Response);
788switch (message.Response.Status)
793using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
795return Response.FromValue(value, message.Response);
798throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
825switch (message.Response.Status)
830using var document = JsonDocument.Parse(message.Response.ContentStream);
832return Response.FromValue(value, message.Response);
835throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\DiskRestorePointRestOperations.cs (38)
96switch (message.Response.Status)
101using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
103return Response.FromValue(value, message.Response);
106return Response.FromValue((DiskRestorePointData)null, message.Response);
108throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
140switch (message.Response.Status)
145using var document = JsonDocument.Parse(message.Response.ContentStream);
147return Response.FromValue(value, message.Response);
150return Response.FromValue((DiskRestorePointData)null, message.Response);
152throw _clientDiagnostics.CreateRequestFailedException(message.Response);
202switch (message.Response.Status)
207using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
209return Response.FromValue(value, message.Response);
212throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
239switch (message.Response.Status)
244using var document = JsonDocument.Parse(message.Response.ContentStream);
246return Response.FromValue(value, message.Response);
249throw _clientDiagnostics.CreateRequestFailedException(message.Response);
315switch (message.Response.Status)
319return message.Response;
321throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
358switch (message.Response.Status)
362return message.Response;
364throw _clientDiagnostics.CreateRequestFailedException(message.Response);
421switch (message.Response.Status)
425return message.Response;
427throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
459switch (message.Response.Status)
463return message.Response;
465throw _clientDiagnostics.CreateRequestFailedException(message.Response);
511switch (message.Response.Status)
516using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
518return Response.FromValue(value, message.Response);
521throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
553switch (message.Response.Status)
558using var document = JsonDocument.Parse(message.Response.ContentStream);
560return Response.FromValue(value, message.Response);
563throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\DisksRestOperations.cs (72)
91switch (message.Response.Status)
95return message.Response;
97throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
124switch (message.Response.Status)
128return message.Response;
130throw _clientDiagnostics.CreateRequestFailedException(message.Response);
181switch (message.Response.Status)
185return message.Response;
187throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
214switch (message.Response.Status)
218return message.Response;
220throw _clientDiagnostics.CreateRequestFailedException(message.Response);
262switch (message.Response.Status)
267using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
269return Response.FromValue(value, message.Response);
272return Response.FromValue((DiskData)null, message.Response);
274throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
296switch (message.Response.Status)
301using var document = JsonDocument.Parse(message.Response.ContentStream);
303return Response.FromValue(value, message.Response);
306return Response.FromValue((DiskData)null, message.Response);
308throw _clientDiagnostics.CreateRequestFailedException(message.Response);
349switch (message.Response.Status)
354return message.Response;
356throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
378switch (message.Response.Status)
383return message.Response;
385throw _clientDiagnostics.CreateRequestFailedException(message.Response);
421switch (message.Response.Status)
426using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
428return Response.FromValue(value, message.Response);
431throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
448switch (message.Response.Status)
453using var document = JsonDocument.Parse(message.Response.ContentStream);
455return Response.FromValue(value, message.Response);
458throw _clientDiagnostics.CreateRequestFailedException(message.Response);
485switch (message.Response.Status)
490using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
492return Response.FromValue(value, message.Response);
495throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
505switch (message.Response.Status)
510using var document = JsonDocument.Parse(message.Response.ContentStream);
512return Response.FromValue(value, message.Response);
515throw _clientDiagnostics.CreateRequestFailedException(message.Response);
567switch (message.Response.Status)
571return message.Response;
573throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
600switch (message.Response.Status)
604return message.Response;
606throw _clientDiagnostics.CreateRequestFailedException(message.Response);
648switch (message.Response.Status)
652return message.Response;
654throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
676switch (message.Response.Status)
680return message.Response;
682throw _clientDiagnostics.CreateRequestFailedException(message.Response);
718switch (message.Response.Status)
723using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
725return Response.FromValue(value, message.Response);
728throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
750switch (message.Response.Status)
755using var document = JsonDocument.Parse(message.Response.ContentStream);
757return Response.FromValue(value, message.Response);
760throw _clientDiagnostics.CreateRequestFailedException(message.Response);
791switch (message.Response.Status)
796using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
798return Response.FromValue(value, message.Response);
801throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
818switch (message.Response.Status)
823using var document = JsonDocument.Parse(message.Response.ContentStream);
825return Response.FromValue(value, message.Response);
828throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\GalleriesRestOperations.cs (60)
91switch (message.Response.Status)
96return message.Response;
98throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
125switch (message.Response.Status)
130return message.Response;
132throw _clientDiagnostics.CreateRequestFailedException(message.Response);
183switch (message.Response.Status)
186return message.Response;
188throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
215switch (message.Response.Status)
218return message.Response;
220throw _clientDiagnostics.CreateRequestFailedException(message.Response);
267switch (message.Response.Status)
272using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
274return Response.FromValue(value, message.Response);
277return Response.FromValue((GalleryData)null, message.Response);
279throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
302switch (message.Response.Status)
307using var document = JsonDocument.Parse(message.Response.ContentStream);
309return Response.FromValue(value, message.Response);
312return Response.FromValue((GalleryData)null, message.Response);
314throw _clientDiagnostics.CreateRequestFailedException(message.Response);
356switch (message.Response.Status)
361return message.Response;
363throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
385switch (message.Response.Status)
390return message.Response;
392throw _clientDiagnostics.CreateRequestFailedException(message.Response);
428switch (message.Response.Status)
433using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
435return Response.FromValue(value, message.Response);
438throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
455switch (message.Response.Status)
460using var document = JsonDocument.Parse(message.Response.ContentStream);
462return Response.FromValue(value, message.Response);
465throw _clientDiagnostics.CreateRequestFailedException(message.Response);
492switch (message.Response.Status)
497using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
499return Response.FromValue(value, message.Response);
502throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
512switch (message.Response.Status)
517using var document = JsonDocument.Parse(message.Response.ContentStream);
519return Response.FromValue(value, message.Response);
522throw _clientDiagnostics.CreateRequestFailedException(message.Response);
558switch (message.Response.Status)
563using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
565return Response.FromValue(value, message.Response);
568throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
590switch (message.Response.Status)
595using var document = JsonDocument.Parse(message.Response.ContentStream);
597return Response.FromValue(value, message.Response);
600throw _clientDiagnostics.CreateRequestFailedException(message.Response);
631switch (message.Response.Status)
636using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
638return Response.FromValue(value, message.Response);
641throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
658switch (message.Response.Status)
663using var document = JsonDocument.Parse(message.Response.ContentStream);
665return Response.FromValue(value, message.Response);
668throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\GalleryApplicationsRestOperations.cs (44)
98switch (message.Response.Status)
103return message.Response;
105throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
137switch (message.Response.Status)
142return message.Response;
144throw _clientDiagnostics.CreateRequestFailedException(message.Response);
202switch (message.Response.Status)
205return message.Response;
207throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
239switch (message.Response.Status)
242return message.Response;
244throw _clientDiagnostics.CreateRequestFailedException(message.Response);
293switch (message.Response.Status)
298using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
300return Response.FromValue(value, message.Response);
303return Response.FromValue((GalleryApplicationData)null, message.Response);
305throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
332switch (message.Response.Status)
337using var document = JsonDocument.Parse(message.Response.ContentStream);
339return Response.FromValue(value, message.Response);
342return Response.FromValue((GalleryApplicationData)null, message.Response);
344throw _clientDiagnostics.CreateRequestFailedException(message.Response);
393switch (message.Response.Status)
398return message.Response;
400throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
427switch (message.Response.Status)
432return message.Response;
434throw _clientDiagnostics.CreateRequestFailedException(message.Response);
477switch (message.Response.Status)
482using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
484return Response.FromValue(value, message.Response);
487throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
509switch (message.Response.Status)
514using var document = JsonDocument.Parse(message.Response.ContentStream);
516return Response.FromValue(value, message.Response);
519throw _clientDiagnostics.CreateRequestFailedException(message.Response);
560switch (message.Response.Status)
565using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
567return Response.FromValue(value, message.Response);
570throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
597switch (message.Response.Status)
602using var document = JsonDocument.Parse(message.Response.ContentStream);
604return Response.FromValue(value, message.Response);
607throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\GalleryApplicationVersionsRestOperations.cs (44)
105switch (message.Response.Status)
110return message.Response;
112throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
149switch (message.Response.Status)
154return message.Response;
156throw _clientDiagnostics.CreateRequestFailedException(message.Response);
221switch (message.Response.Status)
224return message.Response;
226throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
263switch (message.Response.Status)
266return message.Response;
268throw _clientDiagnostics.CreateRequestFailedException(message.Response);
329switch (message.Response.Status)
334using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
336return Response.FromValue(value, message.Response);
339return Response.FromValue((GalleryApplicationVersionData)null, message.Response);
341throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
374switch (message.Response.Status)
379using var document = JsonDocument.Parse(message.Response.ContentStream);
381return Response.FromValue(value, message.Response);
384return Response.FromValue((GalleryApplicationVersionData)null, message.Response);
386throw _clientDiagnostics.CreateRequestFailedException(message.Response);
442switch (message.Response.Status)
447return message.Response;
449throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
481switch (message.Response.Status)
486return message.Response;
488throw _clientDiagnostics.CreateRequestFailedException(message.Response);
538switch (message.Response.Status)
543using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
545return Response.FromValue(value, message.Response);
548throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
575switch (message.Response.Status)
580using var document = JsonDocument.Parse(message.Response.ContentStream);
582return Response.FromValue(value, message.Response);
585throw _clientDiagnostics.CreateRequestFailedException(message.Response);
631switch (message.Response.Status)
636using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
638return Response.FromValue(value, message.Response);
641throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
673switch (message.Response.Status)
678using var document = JsonDocument.Parse(message.Response.ContentStream);
680return Response.FromValue(value, message.Response);
683throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\GalleryImagesRestOperations.cs (44)
98switch (message.Response.Status)
103return message.Response;
105throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
137switch (message.Response.Status)
142return message.Response;
144throw _clientDiagnostics.CreateRequestFailedException(message.Response);
202switch (message.Response.Status)
205return message.Response;
207throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
239switch (message.Response.Status)
242return message.Response;
244throw _clientDiagnostics.CreateRequestFailedException(message.Response);
293switch (message.Response.Status)
298using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
300return Response.FromValue(value, message.Response);
303return Response.FromValue((GalleryImageData)null, message.Response);
305throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
332switch (message.Response.Status)
337using var document = JsonDocument.Parse(message.Response.ContentStream);
339return Response.FromValue(value, message.Response);
342return Response.FromValue((GalleryImageData)null, message.Response);
344throw _clientDiagnostics.CreateRequestFailedException(message.Response);
393switch (message.Response.Status)
398return message.Response;
400throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
427switch (message.Response.Status)
432return message.Response;
434throw _clientDiagnostics.CreateRequestFailedException(message.Response);
477switch (message.Response.Status)
482using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
484return Response.FromValue(value, message.Response);
487throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
509switch (message.Response.Status)
514using var document = JsonDocument.Parse(message.Response.ContentStream);
516return Response.FromValue(value, message.Response);
519throw _clientDiagnostics.CreateRequestFailedException(message.Response);
560switch (message.Response.Status)
565using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
567return Response.FromValue(value, message.Response);
570throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
597switch (message.Response.Status)
602using var document = JsonDocument.Parse(message.Response.ContentStream);
604return Response.FromValue(value, message.Response);
607throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\GalleryImageVersionsRestOperations.cs (44)
105switch (message.Response.Status)
110return message.Response;
112throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
149switch (message.Response.Status)
154return message.Response;
156throw _clientDiagnostics.CreateRequestFailedException(message.Response);
221switch (message.Response.Status)
224return message.Response;
226throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
263switch (message.Response.Status)
266return message.Response;
268throw _clientDiagnostics.CreateRequestFailedException(message.Response);
329switch (message.Response.Status)
334using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
336return Response.FromValue(value, message.Response);
339return Response.FromValue((GalleryImageVersionData)null, message.Response);
341throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
374switch (message.Response.Status)
379using var document = JsonDocument.Parse(message.Response.ContentStream);
381return Response.FromValue(value, message.Response);
384return Response.FromValue((GalleryImageVersionData)null, message.Response);
386throw _clientDiagnostics.CreateRequestFailedException(message.Response);
442switch (message.Response.Status)
447return message.Response;
449throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
481switch (message.Response.Status)
486return message.Response;
488throw _clientDiagnostics.CreateRequestFailedException(message.Response);
538switch (message.Response.Status)
543using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
545return Response.FromValue(value, message.Response);
548throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
575switch (message.Response.Status)
580using var document = JsonDocument.Parse(message.Response.ContentStream);
582return Response.FromValue(value, message.Response);
585throw _clientDiagnostics.CreateRequestFailedException(message.Response);
631switch (message.Response.Status)
636using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
638return Response.FromValue(value, message.Response);
641throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
673switch (message.Response.Status)
678using var document = JsonDocument.Parse(message.Response.ContentStream);
680return Response.FromValue(value, message.Response);
683throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ImagesRestOperations.cs (60)
91switch (message.Response.Status)
95return message.Response;
97throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
124switch (message.Response.Status)
128return message.Response;
130throw _clientDiagnostics.CreateRequestFailedException(message.Response);
181switch (message.Response.Status)
185return message.Response;
187throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
214switch (message.Response.Status)
218return message.Response;
220throw _clientDiagnostics.CreateRequestFailedException(message.Response);
261switch (message.Response.Status)
266return message.Response;
268throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
290switch (message.Response.Status)
295return message.Response;
297throw _clientDiagnostics.CreateRequestFailedException(message.Response);
344switch (message.Response.Status)
349using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
351return Response.FromValue(value, message.Response);
354return Response.FromValue((ImageData)null, message.Response);
356throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
379switch (message.Response.Status)
384using var document = JsonDocument.Parse(message.Response.ContentStream);
386return Response.FromValue(value, message.Response);
389return Response.FromValue((ImageData)null, message.Response);
391throw _clientDiagnostics.CreateRequestFailedException(message.Response);
427switch (message.Response.Status)
432using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
434return Response.FromValue(value, message.Response);
437throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
454switch (message.Response.Status)
459using var document = JsonDocument.Parse(message.Response.ContentStream);
461return Response.FromValue(value, message.Response);
464throw _clientDiagnostics.CreateRequestFailedException(message.Response);
491switch (message.Response.Status)
496using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
498return Response.FromValue(value, message.Response);
501throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
511switch (message.Response.Status)
516using var document = JsonDocument.Parse(message.Response.ContentStream);
518return Response.FromValue(value, message.Response);
521throw _clientDiagnostics.CreateRequestFailedException(message.Response);
557switch (message.Response.Status)
562using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
564return Response.FromValue(value, message.Response);
567throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
589switch (message.Response.Status)
594using var document = JsonDocument.Parse(message.Response.ContentStream);
596return Response.FromValue(value, message.Response);
599throw _clientDiagnostics.CreateRequestFailedException(message.Response);
630switch (message.Response.Status)
635using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
637return Response.FromValue(value, message.Response);
640throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
657switch (message.Response.Status)
662using var document = JsonDocument.Parse(message.Response.ContentStream);
664return Response.FromValue(value, message.Response);
667throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\PrivateEndpointConnectionsRestOperations.cs (38)
98switch (message.Response.Status)
102return message.Response;
104throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
136switch (message.Response.Status)
140return message.Response;
142throw _clientDiagnostics.CreateRequestFailedException(message.Response);
191switch (message.Response.Status)
196using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
198return Response.FromValue(value, message.Response);
201return Response.FromValue((PrivateEndpointConnectionData)null, message.Response);
203throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
230switch (message.Response.Status)
235using var document = JsonDocument.Parse(message.Response.ContentStream);
237return Response.FromValue(value, message.Response);
240return Response.FromValue((PrivateEndpointConnectionData)null, message.Response);
242throw _clientDiagnostics.CreateRequestFailedException(message.Response);
291switch (message.Response.Status)
296return message.Response;
298throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
325switch (message.Response.Status)
330return message.Response;
332throw _clientDiagnostics.CreateRequestFailedException(message.Response);
375switch (message.Response.Status)
380using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
382return Response.FromValue(value, message.Response);
385throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
407switch (message.Response.Status)
412using var document = JsonDocument.Parse(message.Response.ContentStream);
414return Response.FromValue(value, message.Response);
417throw _clientDiagnostics.CreateRequestFailedException(message.Response);
458switch (message.Response.Status)
463using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
465return Response.FromValue(value, message.Response);
468throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
495switch (message.Response.Status)
500using var document = JsonDocument.Parse(message.Response.ContentStream);
502return Response.FromValue(value, message.Response);
505throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ProximityPlacementGroupsRestOperations.cs (64)
91switch (message.Response.Status)
97using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
99return Response.FromValue(value, message.Response);
102throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
129switch (message.Response.Status)
135using var document = JsonDocument.Parse(message.Response.ContentStream);
137return Response.FromValue(value, message.Response);
140throw _clientDiagnostics.CreateRequestFailedException(message.Response);
191switch (message.Response.Status)
196using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
198return Response.FromValue(value, message.Response);
201throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
228switch (message.Response.Status)
233using var document = JsonDocument.Parse(message.Response.ContentStream);
235return Response.FromValue(value, message.Response);
238throw _clientDiagnostics.CreateRequestFailedException(message.Response);
279switch (message.Response.Status)
282return message.Response;
284throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
306switch (message.Response.Status)
309return message.Response;
311throw _clientDiagnostics.CreateRequestFailedException(message.Response);
358switch (message.Response.Status)
363using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
365return Response.FromValue(value, message.Response);
368return Response.FromValue((ProximityPlacementGroupData)null, message.Response);
370throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
393switch (message.Response.Status)
398using var document = JsonDocument.Parse(message.Response.ContentStream);
400return Response.FromValue(value, message.Response);
403return Response.FromValue((ProximityPlacementGroupData)null, message.Response);
405throw _clientDiagnostics.CreateRequestFailedException(message.Response);
432switch (message.Response.Status)
437using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
439return Response.FromValue(value, message.Response);
442throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
452switch (message.Response.Status)
457using var document = JsonDocument.Parse(message.Response.ContentStream);
459return Response.FromValue(value, message.Response);
462throw _clientDiagnostics.CreateRequestFailedException(message.Response);
498switch (message.Response.Status)
503using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
505return Response.FromValue(value, message.Response);
508throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
525switch (message.Response.Status)
530using var document = JsonDocument.Parse(message.Response.ContentStream);
532return Response.FromValue(value, message.Response);
535throw _clientDiagnostics.CreateRequestFailedException(message.Response);
566switch (message.Response.Status)
571using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
573return Response.FromValue(value, message.Response);
576throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
593switch (message.Response.Status)
598using var document = JsonDocument.Parse(message.Response.ContentStream);
600return Response.FromValue(value, message.Response);
603throw _clientDiagnostics.CreateRequestFailedException(message.Response);
639switch (message.Response.Status)
644using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
646return Response.FromValue(value, message.Response);
649throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
671switch (message.Response.Status)
676using var document = JsonDocument.Parse(message.Response.ContentStream);
678return Response.FromValue(value, message.Response);
681throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\RestorePointCollectionsRestOperations.cs (64)
91switch (message.Response.Status)
97using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
99return Response.FromValue(value, message.Response);
102throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
129switch (message.Response.Status)
135using var document = JsonDocument.Parse(message.Response.ContentStream);
137return Response.FromValue(value, message.Response);
140throw _clientDiagnostics.CreateRequestFailedException(message.Response);
191switch (message.Response.Status)
196using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
198return Response.FromValue(value, message.Response);
201throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
228switch (message.Response.Status)
233using var document = JsonDocument.Parse(message.Response.ContentStream);
235return Response.FromValue(value, message.Response);
238throw _clientDiagnostics.CreateRequestFailedException(message.Response);
280switch (message.Response.Status)
285return message.Response;
287throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
309switch (message.Response.Status)
314return message.Response;
316throw _clientDiagnostics.CreateRequestFailedException(message.Response);
363switch (message.Response.Status)
368using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
370return Response.FromValue(value, message.Response);
373return Response.FromValue((RestorePointCollectionData)null, message.Response);
375throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
398switch (message.Response.Status)
403using var document = JsonDocument.Parse(message.Response.ContentStream);
405return Response.FromValue(value, message.Response);
408return Response.FromValue((RestorePointCollectionData)null, message.Response);
410throw _clientDiagnostics.CreateRequestFailedException(message.Response);
446switch (message.Response.Status)
451using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
453return Response.FromValue(value, message.Response);
456throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
473switch (message.Response.Status)
478using var document = JsonDocument.Parse(message.Response.ContentStream);
480return Response.FromValue(value, message.Response);
483throw _clientDiagnostics.CreateRequestFailedException(message.Response);
510switch (message.Response.Status)
515using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
517return Response.FromValue(value, message.Response);
520throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
530switch (message.Response.Status)
535using var document = JsonDocument.Parse(message.Response.ContentStream);
537return Response.FromValue(value, message.Response);
540throw _clientDiagnostics.CreateRequestFailedException(message.Response);
576switch (message.Response.Status)
581using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
583return Response.FromValue(value, message.Response);
586throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
608switch (message.Response.Status)
613using var document = JsonDocument.Parse(message.Response.ContentStream);
615return Response.FromValue(value, message.Response);
618throw _clientDiagnostics.CreateRequestFailedException(message.Response);
649switch (message.Response.Status)
654using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
656return Response.FromValue(value, message.Response);
659throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
676switch (message.Response.Status)
681using var document = JsonDocument.Parse(message.Response.ContentStream);
683return Response.FromValue(value, message.Response);
686throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\SharedGalleriesRestOperations.cs (26)
81switch (message.Response.Status)
86using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
88return Response.FromValue(value, message.Response);
91throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
109switch (message.Response.Status)
114using var document = JsonDocument.Parse(message.Response.ContentStream);
116return Response.FromValue(value, message.Response);
119throw _clientDiagnostics.CreateRequestFailedException(message.Response);
161switch (message.Response.Status)
166using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
168return Response.FromValue(value, message.Response);
171return Response.FromValue((SharedGalleryData)null, message.Response);
173throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
195switch (message.Response.Status)
200using var document = JsonDocument.Parse(message.Response.ContentStream);
202return Response.FromValue(value, message.Response);
205return Response.FromValue((SharedGalleryData)null, message.Response);
207throw _clientDiagnostics.CreateRequestFailedException(message.Response);
244switch (message.Response.Status)
249using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
251return Response.FromValue(value, message.Response);
254throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
277switch (message.Response.Status)
282using var document = JsonDocument.Parse(message.Response.ContentStream);
284return Response.FromValue(value, message.Response);
287throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\SharedGalleryImagesRestOperations.cs (26)
88switch (message.Response.Status)
93using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
95return Response.FromValue(value, message.Response);
98throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
121switch (message.Response.Status)
126using var document = JsonDocument.Parse(message.Response.ContentStream);
128return Response.FromValue(value, message.Response);
131throw _clientDiagnostics.CreateRequestFailedException(message.Response);
180switch (message.Response.Status)
185using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
187return Response.FromValue(value, message.Response);
190return Response.FromValue((SharedGalleryImageData)null, message.Response);
192throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
219switch (message.Response.Status)
224using var document = JsonDocument.Parse(message.Response.ContentStream);
226return Response.FromValue(value, message.Response);
229return Response.FromValue((SharedGalleryImageData)null, message.Response);
231throw _clientDiagnostics.CreateRequestFailedException(message.Response);
273switch (message.Response.Status)
278using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
280return Response.FromValue(value, message.Response);
283throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
311switch (message.Response.Status)
316using var document = JsonDocument.Parse(message.Response.ContentStream);
318return Response.FromValue(value, message.Response);
321throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\SharedGalleryImageVersionsRestOperations.cs (26)
95switch (message.Response.Status)
100using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
102return Response.FromValue(value, message.Response);
105throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
133switch (message.Response.Status)
138using var document = JsonDocument.Parse(message.Response.ContentStream);
140return Response.FromValue(value, message.Response);
143throw _clientDiagnostics.CreateRequestFailedException(message.Response);
199switch (message.Response.Status)
204using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
206return Response.FromValue(value, message.Response);
209return Response.FromValue((SharedGalleryImageVersionData)null, message.Response);
211throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
243switch (message.Response.Status)
248using var document = JsonDocument.Parse(message.Response.ContentStream);
250return Response.FromValue(value, message.Response);
253return Response.FromValue((SharedGalleryImageVersionData)null, message.Response);
255throw _clientDiagnostics.CreateRequestFailedException(message.Response);
302switch (message.Response.Status)
307using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
309return Response.FromValue(value, message.Response);
312throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
345switch (message.Response.Status)
350using var document = JsonDocument.Parse(message.Response.ContentStream);
352return Response.FromValue(value, message.Response);
355throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\SnapshotsRestOperations.cs (72)
91switch (message.Response.Status)
95return message.Response;
97throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
124switch (message.Response.Status)
128return message.Response;
130throw _clientDiagnostics.CreateRequestFailedException(message.Response);
181switch (message.Response.Status)
185return message.Response;
187throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
214switch (message.Response.Status)
218return message.Response;
220throw _clientDiagnostics.CreateRequestFailedException(message.Response);
262switch (message.Response.Status)
267using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
269return Response.FromValue(value, message.Response);
272return Response.FromValue((SnapshotData)null, message.Response);
274throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
296switch (message.Response.Status)
301using var document = JsonDocument.Parse(message.Response.ContentStream);
303return Response.FromValue(value, message.Response);
306return Response.FromValue((SnapshotData)null, message.Response);
308throw _clientDiagnostics.CreateRequestFailedException(message.Response);
349switch (message.Response.Status)
354return message.Response;
356throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
378switch (message.Response.Status)
383return message.Response;
385throw _clientDiagnostics.CreateRequestFailedException(message.Response);
421switch (message.Response.Status)
426using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
428return Response.FromValue(value, message.Response);
431throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
448switch (message.Response.Status)
453using var document = JsonDocument.Parse(message.Response.ContentStream);
455return Response.FromValue(value, message.Response);
458throw _clientDiagnostics.CreateRequestFailedException(message.Response);
485switch (message.Response.Status)
490using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
492return Response.FromValue(value, message.Response);
495throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
505switch (message.Response.Status)
510using var document = JsonDocument.Parse(message.Response.ContentStream);
512return Response.FromValue(value, message.Response);
515throw _clientDiagnostics.CreateRequestFailedException(message.Response);
567switch (message.Response.Status)
571return message.Response;
573throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
600switch (message.Response.Status)
604return message.Response;
606throw _clientDiagnostics.CreateRequestFailedException(message.Response);
648switch (message.Response.Status)
652return message.Response;
654throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
676switch (message.Response.Status)
680return message.Response;
682throw _clientDiagnostics.CreateRequestFailedException(message.Response);
718switch (message.Response.Status)
723using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
725return Response.FromValue(value, message.Response);
728throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
750switch (message.Response.Status)
755using var document = JsonDocument.Parse(message.Response.ContentStream);
757return Response.FromValue(value, message.Response);
760throw _clientDiagnostics.CreateRequestFailedException(message.Response);
791switch (message.Response.Status)
796using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
798return Response.FromValue(value, message.Response);
801throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
818switch (message.Response.Status)
823using var document = JsonDocument.Parse(message.Response.ContentStream);
825return Response.FromValue(value, message.Response);
828throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\SshPublicKeysRestOperations.cs (72)
67switch (message.Response.Status)
72using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
74return Response.FromValue(value, message.Response);
77throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
87switch (message.Response.Status)
92using var document = JsonDocument.Parse(message.Response.ContentStream);
94return Response.FromValue(value, message.Response);
97throw _clientDiagnostics.CreateRequestFailedException(message.Response);
133switch (message.Response.Status)
138using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
140return Response.FromValue(value, message.Response);
143throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
160switch (message.Response.Status)
165using var document = JsonDocument.Parse(message.Response.ContentStream);
167return Response.FromValue(value, message.Response);
170throw _clientDiagnostics.CreateRequestFailedException(message.Response);
221switch (message.Response.Status)
227using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
229return Response.FromValue(value, message.Response);
232throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
259switch (message.Response.Status)
265using var document = JsonDocument.Parse(message.Response.ContentStream);
267return Response.FromValue(value, message.Response);
270throw _clientDiagnostics.CreateRequestFailedException(message.Response);
321switch (message.Response.Status)
326using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
328return Response.FromValue(value, message.Response);
331throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
358switch (message.Response.Status)
363using var document = JsonDocument.Parse(message.Response.ContentStream);
365return Response.FromValue(value, message.Response);
368throw _clientDiagnostics.CreateRequestFailedException(message.Response);
409switch (message.Response.Status)
413return message.Response;
415throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
437switch (message.Response.Status)
441return message.Response;
443throw _clientDiagnostics.CreateRequestFailedException(message.Response);
485switch (message.Response.Status)
490using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
492return Response.FromValue(value, message.Response);
495return Response.FromValue((SshPublicKeyData)null, message.Response);
497throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
519switch (message.Response.Status)
524using var document = JsonDocument.Parse(message.Response.ContentStream);
526return Response.FromValue(value, message.Response);
529return Response.FromValue((SshPublicKeyData)null, message.Response);
531throw _clientDiagnostics.CreateRequestFailedException(message.Response);
574switch (message.Response.Status)
579using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
581return Response.FromValue(value, message.Response);
584throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
606switch (message.Response.Status)
611using var document = JsonDocument.Parse(message.Response.ContentStream);
613return Response.FromValue(value, message.Response);
616throw _clientDiagnostics.CreateRequestFailedException(message.Response);
647switch (message.Response.Status)
652using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
654return Response.FromValue(value, message.Response);
657throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
674switch (message.Response.Status)
679using var document = JsonDocument.Parse(message.Response.ContentStream);
681return Response.FromValue(value, message.Response);
684throw _clientDiagnostics.CreateRequestFailedException(message.Response);
720switch (message.Response.Status)
725using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
727return Response.FromValue(value, message.Response);
730throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
752switch (message.Response.Status)
757using var document = JsonDocument.Parse(message.Response.ContentStream);
759return Response.FromValue(value, message.Response);
762throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VirtualMachineExtensionImagesRestOperations.cs (24)
97switch (message.Response.Status)
102using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
104return Response.FromValue(value, message.Response);
107throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
139switch (message.Response.Status)
144using var document = JsonDocument.Parse(message.Response.ContentStream);
146return Response.FromValue(value, message.Response);
149throw _clientDiagnostics.CreateRequestFailedException(message.Response);
192switch (message.Response.Status)
197using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
204return Response.FromValue(value, message.Response);
207throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
229switch (message.Response.Status)
234using var document = JsonDocument.Parse(message.Response.ContentStream);
241return Response.FromValue(value, message.Response);
244throw _clientDiagnostics.CreateRequestFailedException(message.Response);
309switch (message.Response.Status)
314using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
321return Response.FromValue(value, message.Response);
324throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
354switch (message.Response.Status)
359using var document = JsonDocument.Parse(message.Response.ContentStream);
366return Response.FromValue(value, message.Response);
369throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VirtualMachineExtensionsRestOperations.cs (36)
98switch (message.Response.Status)
102return message.Response;
104throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
136switch (message.Response.Status)
140return message.Response;
142throw _clientDiagnostics.CreateRequestFailedException(message.Response);
200switch (message.Response.Status)
203return message.Response;
205throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
237switch (message.Response.Status)
240return message.Response;
242throw _clientDiagnostics.CreateRequestFailedException(message.Response);
290switch (message.Response.Status)
295return message.Response;
297throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
324switch (message.Response.Status)
329return message.Response;
331throw _clientDiagnostics.CreateRequestFailedException(message.Response);
385switch (message.Response.Status)
390using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
392return Response.FromValue(value, message.Response);
395return Response.FromValue((VirtualMachineExtensionData)null, message.Response);
397throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
425switch (message.Response.Status)
430using var document = JsonDocument.Parse(message.Response.ContentStream);
432return Response.FromValue(value, message.Response);
435return Response.FromValue((VirtualMachineExtensionData)null, message.Response);
437throw _clientDiagnostics.CreateRequestFailedException(message.Response);
485switch (message.Response.Status)
490using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
492return Response.FromValue(value, message.Response);
495throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
518switch (message.Response.Status)
523using var document = JsonDocument.Parse(message.Response.ContentStream);
525return Response.FromValue(value, message.Response);
528throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VirtualMachineImagesEdgeZoneRestOperations.cs (40)
111switch (message.Response.Status)
116using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
118return Response.FromValue(value, message.Response);
121throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
163switch (message.Response.Status)
168using var document = JsonDocument.Parse(message.Response.ContentStream);
170return Response.FromValue(value, message.Response);
173throw _clientDiagnostics.CreateRequestFailedException(message.Response);
252switch (message.Response.Status)
257using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
264return Response.FromValue(value, message.Response);
267throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
307switch (message.Response.Status)
312using var document = JsonDocument.Parse(message.Response.ContentStream);
319return Response.FromValue(value, message.Response);
322throw _clientDiagnostics.CreateRequestFailedException(message.Response);
372switch (message.Response.Status)
377using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
384return Response.FromValue(value, message.Response);
387throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
414switch (message.Response.Status)
419using var document = JsonDocument.Parse(message.Response.ContentStream);
426return Response.FromValue(value, message.Response);
429throw _clientDiagnostics.CreateRequestFailedException(message.Response);
472switch (message.Response.Status)
477using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
484return Response.FromValue(value, message.Response);
487throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
509switch (message.Response.Status)
514using var document = JsonDocument.Parse(message.Response.ContentStream);
521return Response.FromValue(value, message.Response);
524throw _clientDiagnostics.CreateRequestFailedException(message.Response);
581switch (message.Response.Status)
586using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
593return Response.FromValue(value, message.Response);
596throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
628switch (message.Response.Status)
633using var document = JsonDocument.Parse(message.Response.ContentStream);
640return Response.FromValue(value, message.Response);
643throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VirtualMachineImagesRestOperations.cs (40)
104switch (message.Response.Status)
109using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
111return Response.FromValue(value, message.Response);
114throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
151switch (message.Response.Status)
156using var document = JsonDocument.Parse(message.Response.ContentStream);
158return Response.FromValue(value, message.Response);
161throw _clientDiagnostics.CreateRequestFailedException(message.Response);
233switch (message.Response.Status)
238using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
245return Response.FromValue(value, message.Response);
248throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
283switch (message.Response.Status)
288using var document = JsonDocument.Parse(message.Response.ContentStream);
295return Response.FromValue(value, message.Response);
298throw _clientDiagnostics.CreateRequestFailedException(message.Response);
341switch (message.Response.Status)
346using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
353return Response.FromValue(value, message.Response);
356throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
378switch (message.Response.Status)
383using var document = JsonDocument.Parse(message.Response.ContentStream);
390return Response.FromValue(value, message.Response);
393throw _clientDiagnostics.CreateRequestFailedException(message.Response);
429switch (message.Response.Status)
434using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
441return Response.FromValue(value, message.Response);
444throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
461switch (message.Response.Status)
466using var document = JsonDocument.Parse(message.Response.ContentStream);
473return Response.FromValue(value, message.Response);
476throw _clientDiagnostics.CreateRequestFailedException(message.Response);
526switch (message.Response.Status)
531using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
538return Response.FromValue(value, message.Response);
541throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
568switch (message.Response.Status)
573using var document = JsonDocument.Parse(message.Response.ContentStream);
580return Response.FromValue(value, message.Response);
583throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VirtualMachineRunCommandsRestOperations.cs (68)
76switch (message.Response.Status)
81using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
83return Response.FromValue(value, message.Response);
86throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
103switch (message.Response.Status)
108using var document = JsonDocument.Parse(message.Response.ContentStream);
110return Response.FromValue(value, message.Response);
113throw _clientDiagnostics.CreateRequestFailedException(message.Response);
155switch (message.Response.Status)
160using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
162return Response.FromValue(value, message.Response);
165throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
187switch (message.Response.Status)
192using var document = JsonDocument.Parse(message.Response.ContentStream);
194return Response.FromValue(value, message.Response);
197throw _clientDiagnostics.CreateRequestFailedException(message.Response);
255switch (message.Response.Status)
259return message.Response;
261throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
293switch (message.Response.Status)
297return message.Response;
299throw _clientDiagnostics.CreateRequestFailedException(message.Response);
357switch (message.Response.Status)
360return message.Response;
362throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
394switch (message.Response.Status)
397return message.Response;
399throw _clientDiagnostics.CreateRequestFailedException(message.Response);
448switch (message.Response.Status)
453return message.Response;
455throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
482switch (message.Response.Status)
487return message.Response;
489throw _clientDiagnostics.CreateRequestFailedException(message.Response);
543switch (message.Response.Status)
548using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
550return Response.FromValue(value, message.Response);
553return Response.FromValue((VirtualMachineRunCommandData)null, message.Response);
555throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
583switch (message.Response.Status)
588using var document = JsonDocument.Parse(message.Response.ContentStream);
590return Response.FromValue(value, message.Response);
593return Response.FromValue((VirtualMachineRunCommandData)null, message.Response);
595throw _clientDiagnostics.CreateRequestFailedException(message.Response);
643switch (message.Response.Status)
648using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
650return Response.FromValue(value, message.Response);
653throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
676switch (message.Response.Status)
681using var document = JsonDocument.Parse(message.Response.ContentStream);
683return Response.FromValue(value, message.Response);
686throw _clientDiagnostics.CreateRequestFailedException(message.Response);
722switch (message.Response.Status)
727using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
729return Response.FromValue(value, message.Response);
732throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
754switch (message.Response.Status)
759using var document = JsonDocument.Parse(message.Response.ContentStream);
761return Response.FromValue(value, message.Response);
764throw _clientDiagnostics.CreateRequestFailedException(message.Response);
806switch (message.Response.Status)
811using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
813return Response.FromValue(value, message.Response);
816throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
844switch (message.Response.Status)
849using var document = JsonDocument.Parse(message.Response.ContentStream);
851return Response.FromValue(value, message.Response);
854throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VirtualMachineScaleSetExtensionsRestOperations.cs (44)
98switch (message.Response.Status)
102return message.Response;
104throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
136switch (message.Response.Status)
140return message.Response;
142throw _clientDiagnostics.CreateRequestFailedException(message.Response);
200switch (message.Response.Status)
204return message.Response;
206throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
238switch (message.Response.Status)
242return message.Response;
244throw _clientDiagnostics.CreateRequestFailedException(message.Response);
292switch (message.Response.Status)
297return message.Response;
299throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
326switch (message.Response.Status)
331return message.Response;
333throw _clientDiagnostics.CreateRequestFailedException(message.Response);
387switch (message.Response.Status)
392using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
394return Response.FromValue(value, message.Response);
397return Response.FromValue((VirtualMachineScaleSetExtensionData)null, message.Response);
399throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
427switch (message.Response.Status)
432using var document = JsonDocument.Parse(message.Response.ContentStream);
434return Response.FromValue(value, message.Response);
437return Response.FromValue((VirtualMachineScaleSetExtensionData)null, message.Response);
439throw _clientDiagnostics.CreateRequestFailedException(message.Response);
482switch (message.Response.Status)
487using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
489return Response.FromValue(value, message.Response);
492throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
514switch (message.Response.Status)
519using var document = JsonDocument.Parse(message.Response.ContentStream);
521return Response.FromValue(value, message.Response);
524throw _clientDiagnostics.CreateRequestFailedException(message.Response);
565switch (message.Response.Status)
570using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
572return Response.FromValue(value, message.Response);
575throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
602switch (message.Response.Status)
607using var document = JsonDocument.Parse(message.Response.ContentStream);
609return Response.FromValue(value, message.Response);
612throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VirtualMachineScaleSetsRestOperations.cs (196)
76switch (message.Response.Status)
81using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
83return Response.FromValue(value, message.Response);
86throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
103switch (message.Response.Status)
108using var document = JsonDocument.Parse(message.Response.ContentStream);
110return Response.FromValue(value, message.Response);
113throw _clientDiagnostics.CreateRequestFailedException(message.Response);
164switch (message.Response.Status)
168return message.Response;
170throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
197switch (message.Response.Status)
201return message.Response;
203throw _clientDiagnostics.CreateRequestFailedException(message.Response);
254switch (message.Response.Status)
257return message.Response;
259throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
286switch (message.Response.Status)
289return message.Response;
291throw _clientDiagnostics.CreateRequestFailedException(message.Response);
337switch (message.Response.Status)
342return message.Response;
344throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
367switch (message.Response.Status)
372return message.Response;
374throw _clientDiagnostics.CreateRequestFailedException(message.Response);
421switch (message.Response.Status)
426using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
428return Response.FromValue(value, message.Response);
431return Response.FromValue((VirtualMachineScaleSetData)null, message.Response);
433throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
456switch (message.Response.Status)
461using var document = JsonDocument.Parse(message.Response.ContentStream);
463return Response.FromValue(value, message.Response);
466return Response.FromValue((VirtualMachineScaleSetData)null, message.Response);
468throw _clientDiagnostics.CreateRequestFailedException(message.Response);
518switch (message.Response.Status)
522return message.Response;
524throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
547switch (message.Response.Status)
551return message.Response;
553throw _clientDiagnostics.CreateRequestFailedException(message.Response);
609switch (message.Response.Status)
613return message.Response;
615throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
643switch (message.Response.Status)
647return message.Response;
649throw _clientDiagnostics.CreateRequestFailedException(message.Response);
692switch (message.Response.Status)
697using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
699return Response.FromValue(value, message.Response);
702throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
724switch (message.Response.Status)
729using var document = JsonDocument.Parse(message.Response.ContentStream);
731return Response.FromValue(value, message.Response);
734throw _clientDiagnostics.CreateRequestFailedException(message.Response);
770switch (message.Response.Status)
775using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
777return Response.FromValue(value, message.Response);
780throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
797switch (message.Response.Status)
802using var document = JsonDocument.Parse(message.Response.ContentStream);
804return Response.FromValue(value, message.Response);
807throw _clientDiagnostics.CreateRequestFailedException(message.Response);
834switch (message.Response.Status)
839using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
841return Response.FromValue(value, message.Response);
844throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
854switch (message.Response.Status)
859using var document = JsonDocument.Parse(message.Response.ContentStream);
861return Response.FromValue(value, message.Response);
864throw _clientDiagnostics.CreateRequestFailedException(message.Response);
907switch (message.Response.Status)
912using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
914return Response.FromValue(value, message.Response);
917throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
939switch (message.Response.Status)
944using var document = JsonDocument.Parse(message.Response.ContentStream);
946return Response.FromValue(value, message.Response);
949throw _clientDiagnostics.CreateRequestFailedException(message.Response);
992switch (message.Response.Status)
997using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
999return Response.FromValue(value, message.Response);
1002throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1024switch (message.Response.Status)
1029using var document = JsonDocument.Parse(message.Response.ContentStream);
1031return Response.FromValue(value, message.Response);
1034throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1089switch (message.Response.Status)
1093return message.Response;
1095throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1119switch (message.Response.Status)
1123return message.Response;
1125throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1175switch (message.Response.Status)
1179return message.Response;
1181throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1204switch (message.Response.Status)
1208return message.Response;
1210throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1260switch (message.Response.Status)
1264return message.Response;
1266throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1289switch (message.Response.Status)
1293return message.Response;
1295throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1345switch (message.Response.Status)
1349return message.Response;
1351throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1374switch (message.Response.Status)
1378return message.Response;
1380throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1430switch (message.Response.Status)
1434return message.Response;
1436throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1459switch (message.Response.Status)
1463return message.Response;
1465throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1516switch (message.Response.Status)
1520return message.Response;
1522throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1549switch (message.Response.Status)
1553return message.Response;
1555throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1605switch (message.Response.Status)
1609return message.Response;
1611throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1634switch (message.Response.Status)
1638return message.Response;
1640throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1690switch (message.Response.Status)
1694return message.Response;
1696throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1719switch (message.Response.Status)
1723return message.Response;
1725throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1770switch (message.Response.Status)
1775using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1777return Response.FromValue(value, message.Response);
1780throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1803switch (message.Response.Status)
1808using var document = JsonDocument.Parse(message.Response.ContentStream);
1810return Response.FromValue(value, message.Response);
1813throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1864switch (message.Response.Status)
1867return message.Response;
1869throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1896switch (message.Response.Status)
1899return message.Response;
1901throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1952switch (message.Response.Status)
1956return message.Response;
1958throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1985switch (message.Response.Status)
1989return message.Response;
1991throw _clientDiagnostics.CreateRequestFailedException(message.Response);
2027switch (message.Response.Status)
2032using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
2034return Response.FromValue(value, message.Response);
2037throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
2059switch (message.Response.Status)
2064using var document = JsonDocument.Parse(message.Response.ContentStream);
2066return Response.FromValue(value, message.Response);
2069throw _clientDiagnostics.CreateRequestFailedException(message.Response);
2105switch (message.Response.Status)
2110using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
2112return Response.FromValue(value, message.Response);
2115throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
2137switch (message.Response.Status)
2142using var document = JsonDocument.Parse(message.Response.ContentStream);
2144return Response.FromValue(value, message.Response);
2147throw _clientDiagnostics.CreateRequestFailedException(message.Response);
2178switch (message.Response.Status)
2183using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
2185return Response.FromValue(value, message.Response);
2188throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
2205switch (message.Response.Status)
2210using var document = JsonDocument.Parse(message.Response.ContentStream);
2212return Response.FromValue(value, message.Response);
2215throw _clientDiagnostics.CreateRequestFailedException(message.Response);
2256switch (message.Response.Status)
2261using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
2263return Response.FromValue(value, message.Response);
2266throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
2293switch (message.Response.Status)
2298using var document = JsonDocument.Parse(message.Response.ContentStream);
2300return Response.FromValue(value, message.Response);
2303throw _clientDiagnostics.CreateRequestFailedException(message.Response);
2344switch (message.Response.Status)
2349using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
2351return Response.FromValue(value, message.Response);
2354throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
2381switch (message.Response.Status)
2386using var document = JsonDocument.Parse(message.Response.ContentStream);
2388return Response.FromValue(value, message.Response);
2391throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VirtualMachineScaleSetVMExtensionsRestOperations.cs (36)
105switch (message.Response.Status)
109return message.Response;
111throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
148switch (message.Response.Status)
152return message.Response;
154throw _clientDiagnostics.CreateRequestFailedException(message.Response);
219switch (message.Response.Status)
222return message.Response;
224throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
261switch (message.Response.Status)
264return message.Response;
266throw _clientDiagnostics.CreateRequestFailedException(message.Response);
322switch (message.Response.Status)
327return message.Response;
329throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
361switch (message.Response.Status)
366return message.Response;
368throw _clientDiagnostics.CreateRequestFailedException(message.Response);
429switch (message.Response.Status)
434using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
436return Response.FromValue(value, message.Response);
439return Response.FromValue((VirtualMachineScaleSetVMExtensionData)null, message.Response);
441throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
474switch (message.Response.Status)
479using var document = JsonDocument.Parse(message.Response.ContentStream);
481return Response.FromValue(value, message.Response);
484return Response.FromValue((VirtualMachineScaleSetVMExtensionData)null, message.Response);
486throw _clientDiagnostics.CreateRequestFailedException(message.Response);
541switch (message.Response.Status)
546using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
548return Response.FromValue(value, message.Response);
551throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
579switch (message.Response.Status)
584using var document = JsonDocument.Parse(message.Response.ContentStream);
586return Response.FromValue(value, message.Response);
589throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VirtualMachineScaleSetVMRunCommandsRestOperations.cs (44)
105switch (message.Response.Status)
109return message.Response;
111throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
148switch (message.Response.Status)
152return message.Response;
154throw _clientDiagnostics.CreateRequestFailedException(message.Response);
219switch (message.Response.Status)
222return message.Response;
224throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
261switch (message.Response.Status)
264return message.Response;
266throw _clientDiagnostics.CreateRequestFailedException(message.Response);
322switch (message.Response.Status)
327return message.Response;
329throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
361switch (message.Response.Status)
366return message.Response;
368throw _clientDiagnostics.CreateRequestFailedException(message.Response);
429switch (message.Response.Status)
434using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
436return Response.FromValue(value, message.Response);
439return Response.FromValue((VirtualMachineRunCommandData)null, message.Response);
441throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
474switch (message.Response.Status)
479using var document = JsonDocument.Parse(message.Response.ContentStream);
481return Response.FromValue(value, message.Response);
484return Response.FromValue((VirtualMachineRunCommandData)null, message.Response);
486throw _clientDiagnostics.CreateRequestFailedException(message.Response);
541switch (message.Response.Status)
546using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
548return Response.FromValue(value, message.Response);
551throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
579switch (message.Response.Status)
584using var document = JsonDocument.Parse(message.Response.ContentStream);
586return Response.FromValue(value, message.Response);
589throw _clientDiagnostics.CreateRequestFailedException(message.Response);
636switch (message.Response.Status)
641using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
643return Response.FromValue(value, message.Response);
646throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
679switch (message.Response.Status)
684using var document = JsonDocument.Parse(message.Response.ContentStream);
686return Response.FromValue(value, message.Response);
689throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VirtualMachineScaleSetVMsRestOperations.cs (114)
98switch (message.Response.Status)
103using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
105return Response.FromValue(value, message.Response);
108throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
133switch (message.Response.Status)
138using var document = JsonDocument.Parse(message.Response.ContentStream);
140return Response.FromValue(value, message.Response);
143throw _clientDiagnostics.CreateRequestFailedException(message.Response);
192switch (message.Response.Status)
195return message.Response;
197throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
224switch (message.Response.Status)
227return message.Response;
229throw _clientDiagnostics.CreateRequestFailedException(message.Response);
286switch (message.Response.Status)
290return message.Response;
292throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
320switch (message.Response.Status)
324return message.Response;
326throw _clientDiagnostics.CreateRequestFailedException(message.Response);
375switch (message.Response.Status)
379return message.Response;
381throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
408switch (message.Response.Status)
412return message.Response;
414throw _clientDiagnostics.CreateRequestFailedException(message.Response);
463switch (message.Response.Status)
467return message.Response;
469throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
496switch (message.Response.Status)
500return message.Response;
502throw _clientDiagnostics.CreateRequestFailedException(message.Response);
560switch (message.Response.Status)
564return message.Response;
566throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
598switch (message.Response.Status)
602return message.Response;
604throw _clientDiagnostics.CreateRequestFailedException(message.Response);
657switch (message.Response.Status)
662return message.Response;
664throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
692switch (message.Response.Status)
697return message.Response;
699throw _clientDiagnostics.CreateRequestFailedException(message.Response);
753switch (message.Response.Status)
758using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
760return Response.FromValue(value, message.Response);
763return Response.FromValue((VirtualMachineScaleSetVMData)null, message.Response);
765throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
793switch (message.Response.Status)
798using var document = JsonDocument.Parse(message.Response.ContentStream);
800return Response.FromValue(value, message.Response);
803return Response.FromValue((VirtualMachineScaleSetVMData)null, message.Response);
805throw _clientDiagnostics.CreateRequestFailedException(message.Response);
855switch (message.Response.Status)
860using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
862return Response.FromValue(value, message.Response);
865throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
892switch (message.Response.Status)
897using var document = JsonDocument.Parse(message.Response.ContentStream);
899return Response.FromValue(value, message.Response);
902throw _clientDiagnostics.CreateRequestFailedException(message.Response);
956switch (message.Response.Status)
960return message.Response;
962throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
990switch (message.Response.Status)
994return message.Response;
996throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1045switch (message.Response.Status)
1049return message.Response;
1051throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1078switch (message.Response.Status)
1082return message.Response;
1084throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1133switch (message.Response.Status)
1137return message.Response;
1139throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1166switch (message.Response.Status)
1170return message.Response;
1172throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1221switch (message.Response.Status)
1225return message.Response;
1227throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1254switch (message.Response.Status)
1258return message.Response;
1260throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1315switch (message.Response.Status)
1320using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1322return Response.FromValue(value, message.Response);
1325throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1353switch (message.Response.Status)
1358using var document = JsonDocument.Parse(message.Response.ContentStream);
1360return Response.FromValue(value, message.Response);
1363throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1412switch (message.Response.Status)
1416return message.Response;
1418throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1445switch (message.Response.Status)
1449return message.Response;
1451throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1510switch (message.Response.Status)
1514return message.Response;
1516throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1548switch (message.Response.Status)
1552return message.Response;
1554throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1598switch (message.Response.Status)
1603using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1605return Response.FromValue(value, message.Response);
1608throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1638switch (message.Response.Status)
1643using var document = JsonDocument.Parse(message.Response.ContentStream);
1645return Response.FromValue(value, message.Response);
1648throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VirtualMachinesRestOperations.cs (190)
76switch (message.Response.Status)
81using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
83return Response.FromValue(value, message.Response);
86throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
103switch (message.Response.Status)
108using var document = JsonDocument.Parse(message.Response.ContentStream);
110return Response.FromValue(value, message.Response);
113throw _clientDiagnostics.CreateRequestFailedException(message.Response);
165switch (message.Response.Status)
169return message.Response;
171throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
198switch (message.Response.Status)
202return message.Response;
204throw _clientDiagnostics.CreateRequestFailedException(message.Response);
255switch (message.Response.Status)
259return message.Response;
261throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
288switch (message.Response.Status)
292return message.Response;
294throw _clientDiagnostics.CreateRequestFailedException(message.Response);
345switch (message.Response.Status)
348return message.Response;
350throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
377switch (message.Response.Status)
380return message.Response;
382throw _clientDiagnostics.CreateRequestFailedException(message.Response);
428switch (message.Response.Status)
433return message.Response;
435throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
458switch (message.Response.Status)
463return message.Response;
465throw _clientDiagnostics.CreateRequestFailedException(message.Response);
512switch (message.Response.Status)
517using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
519return Response.FromValue(value, message.Response);
522return Response.FromValue((VirtualMachineData)null, message.Response);
524throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
547switch (message.Response.Status)
552using var document = JsonDocument.Parse(message.Response.ContentStream);
554return Response.FromValue(value, message.Response);
557return Response.FromValue((VirtualMachineData)null, message.Response);
559throw _clientDiagnostics.CreateRequestFailedException(message.Response);
602switch (message.Response.Status)
607using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
609return Response.FromValue(value, message.Response);
612throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
634switch (message.Response.Status)
639using var document = JsonDocument.Parse(message.Response.ContentStream);
641return Response.FromValue(value, message.Response);
644throw _clientDiagnostics.CreateRequestFailedException(message.Response);
686switch (message.Response.Status)
690return message.Response;
692throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
714switch (message.Response.Status)
718return message.Response;
720throw _clientDiagnostics.CreateRequestFailedException(message.Response);
762switch (message.Response.Status)
766return message.Response;
768throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
790switch (message.Response.Status)
794return message.Response;
796throw _clientDiagnostics.CreateRequestFailedException(message.Response);
838switch (message.Response.Status)
841return message.Response;
843throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
865switch (message.Response.Status)
868return message.Response;
870throw _clientDiagnostics.CreateRequestFailedException(message.Response);
906switch (message.Response.Status)
911using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
913return Response.FromValue(value, message.Response);
916throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
933switch (message.Response.Status)
938using var document = JsonDocument.Parse(message.Response.ContentStream);
940return Response.FromValue(value, message.Response);
943throw _clientDiagnostics.CreateRequestFailedException(message.Response);
975switch (message.Response.Status)
980using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
982return Response.FromValue(value, message.Response);
985throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
996switch (message.Response.Status)
1001using var document = JsonDocument.Parse(message.Response.ContentStream);
1003return Response.FromValue(value, message.Response);
1006throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1049switch (message.Response.Status)
1054using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1056return Response.FromValue(value, message.Response);
1059throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1081switch (message.Response.Status)
1086using var document = JsonDocument.Parse(message.Response.ContentStream);
1088return Response.FromValue(value, message.Response);
1091throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1138switch (message.Response.Status)
1142return message.Response;
1144throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1167switch (message.Response.Status)
1171return message.Response;
1173throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1216switch (message.Response.Status)
1220return message.Response;
1222throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1244switch (message.Response.Status)
1248return message.Response;
1250throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1292switch (message.Response.Status)
1296return message.Response;
1298throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1320switch (message.Response.Status)
1324return message.Response;
1326throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1368switch (message.Response.Status)
1372return message.Response;
1374throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1396switch (message.Response.Status)
1400return message.Response;
1402throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1444switch (message.Response.Status)
1448return message.Response;
1450throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1472switch (message.Response.Status)
1476return message.Response;
1478throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1528switch (message.Response.Status)
1532return message.Response;
1534throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1557switch (message.Response.Status)
1561return message.Response;
1563throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1611switch (message.Response.Status)
1616using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1618return Response.FromValue(value, message.Response);
1621throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1644switch (message.Response.Status)
1649using var document = JsonDocument.Parse(message.Response.ContentStream);
1651return Response.FromValue(value, message.Response);
1654throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1696switch (message.Response.Status)
1700return message.Response;
1702throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1724switch (message.Response.Status)
1728return message.Response;
1730throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1772switch (message.Response.Status)
1775return message.Response;
1777throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1799switch (message.Response.Status)
1802return message.Response;
1804throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1847switch (message.Response.Status)
1851return message.Response;
1853throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1875switch (message.Response.Status)
1879return message.Response;
1881throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1933switch (message.Response.Status)
1937return message.Response;
1939throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1966switch (message.Response.Status)
1970return message.Response;
1972throw _clientDiagnostics.CreateRequestFailedException(message.Response);
2024switch (message.Response.Status)
2028return message.Response;
2030throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
2057switch (message.Response.Status)
2061return message.Response;
2063throw _clientDiagnostics.CreateRequestFailedException(message.Response);
2099switch (message.Response.Status)
2104using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
2106return Response.FromValue(value, message.Response);
2109throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
2131switch (message.Response.Status)
2136using var document = JsonDocument.Parse(message.Response.ContentStream);
2138return Response.FromValue(value, message.Response);
2141throw _clientDiagnostics.CreateRequestFailedException(message.Response);
2177switch (message.Response.Status)
2182using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
2184return Response.FromValue(value, message.Response);
2187throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
2209switch (message.Response.Status)
2214using var document = JsonDocument.Parse(message.Response.ContentStream);
2216return Response.FromValue(value, message.Response);
2219throw _clientDiagnostics.CreateRequestFailedException(message.Response);
2251switch (message.Response.Status)
2256using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
2258return Response.FromValue(value, message.Response);
2261throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
2279switch (message.Response.Status)
2284using var document = JsonDocument.Parse(message.Response.ContentStream);
2286return Response.FromValue(value, message.Response);
2289throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Azure.ResourceManager.CosmosDB (938)
Generated\CassandraResourcesRestOperations.cs (108)
84switch (message.Response.Status)
89using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
91return Response.FromValue(value, message.Response);
94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
116switch (message.Response.Status)
121using var document = JsonDocument.Parse(message.Response.ContentStream);
123return Response.FromValue(value, message.Response);
126throw _clientDiagnostics.CreateRequestFailedException(message.Response);
174switch (message.Response.Status)
179using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
181return Response.FromValue(value, message.Response);
184throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
211switch (message.Response.Status)
216using var document = JsonDocument.Parse(message.Response.ContentStream);
218return Response.FromValue(value, message.Response);
221throw _clientDiagnostics.CreateRequestFailedException(message.Response);
278switch (message.Response.Status)
282return message.Response;
284throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
316switch (message.Response.Status)
320return message.Response;
322throw _clientDiagnostics.CreateRequestFailedException(message.Response);
369switch (message.Response.Status)
373return message.Response;
375throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
402switch (message.Response.Status)
406return message.Response;
408throw _clientDiagnostics.CreateRequestFailedException(message.Response);
457switch (message.Response.Status)
462using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
464return Response.FromValue(value, message.Response);
467throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
494switch (message.Response.Status)
499using var document = JsonDocument.Parse(message.Response.ContentStream);
501return Response.FromValue(value, message.Response);
504throw _clientDiagnostics.CreateRequestFailedException(message.Response);
562switch (message.Response.Status)
566return message.Response;
568throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
600switch (message.Response.Status)
604return message.Response;
606throw _clientDiagnostics.CreateRequestFailedException(message.Response);
655switch (message.Response.Status)
659return message.Response;
661throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
688switch (message.Response.Status)
692return message.Response;
694throw _clientDiagnostics.CreateRequestFailedException(message.Response);
743switch (message.Response.Status)
747return message.Response;
749throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
776switch (message.Response.Status)
780return message.Response;
782throw _clientDiagnostics.CreateRequestFailedException(message.Response);
831switch (message.Response.Status)
836using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
838return Response.FromValue(value, message.Response);
841throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
868switch (message.Response.Status)
873using var document = JsonDocument.Parse(message.Response.ContentStream);
875return Response.FromValue(value, message.Response);
878throw _clientDiagnostics.CreateRequestFailedException(message.Response);
933switch (message.Response.Status)
938using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
940return Response.FromValue(value, message.Response);
943throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
975switch (message.Response.Status)
980using var document = JsonDocument.Parse(message.Response.ContentStream);
982return Response.FromValue(value, message.Response);
985throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1049switch (message.Response.Status)
1053return message.Response;
1055throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1092switch (message.Response.Status)
1096return message.Response;
1098throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1152switch (message.Response.Status)
1156return message.Response;
1158throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1190switch (message.Response.Status)
1194return message.Response;
1196throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1252switch (message.Response.Status)
1257using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1259return Response.FromValue(value, message.Response);
1262throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1294switch (message.Response.Status)
1299using var document = JsonDocument.Parse(message.Response.ContentStream);
1301return Response.FromValue(value, message.Response);
1304throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1369switch (message.Response.Status)
1373return message.Response;
1375throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1412switch (message.Response.Status)
1416return message.Response;
1418throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1474switch (message.Response.Status)
1478return message.Response;
1480throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1512switch (message.Response.Status)
1516return message.Response;
1518throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1574switch (message.Response.Status)
1578return message.Response;
1580throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1612switch (message.Response.Status)
1616return message.Response;
1618throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\CollectionRestOperations.cs (24)
104switch (message.Response.Status)
109using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
111return Response.FromValue(value, message.Response);
114throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
151switch (message.Response.Status)
156using var document = JsonDocument.Parse(message.Response.ContentStream);
158return Response.FromValue(value, message.Response);
161throw _clientDiagnostics.CreateRequestFailedException(message.Response);
222switch (message.Response.Status)
227using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
229return Response.FromValue(value, message.Response);
232throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
265switch (message.Response.Status)
270using var document = JsonDocument.Parse(message.Response.ContentStream);
272return Response.FromValue(value, message.Response);
275throw _clientDiagnostics.CreateRequestFailedException(message.Response);
331switch (message.Response.Status)
336using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
338return Response.FromValue(value, message.Response);
341throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
373switch (message.Response.Status)
378using var document = JsonDocument.Parse(message.Response.ContentStream);
380return Response.FromValue(value, message.Response);
383throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\DatabaseAccountsRestOperations.cs (130)
83switch (message.Response.Status)
88using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
90return Response.FromValue(value, message.Response);
93throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
115switch (message.Response.Status)
120using var document = JsonDocument.Parse(message.Response.ContentStream);
122return Response.FromValue(value, message.Response);
125throw _clientDiagnostics.CreateRequestFailedException(message.Response);
175switch (message.Response.Status)
178return message.Response;
180throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
207switch (message.Response.Status)
210return message.Response;
212throw _clientDiagnostics.CreateRequestFailedException(message.Response);
262switch (message.Response.Status)
265return message.Response;
267throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
294switch (message.Response.Status)
297return message.Response;
299throw _clientDiagnostics.CreateRequestFailedException(message.Response);
339switch (message.Response.Status)
343return message.Response;
345throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
367switch (message.Response.Status)
371return message.Response;
373throw _clientDiagnostics.CreateRequestFailedException(message.Response);
423switch (message.Response.Status)
427return message.Response;
429throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
456switch (message.Response.Status)
460return message.Response;
462throw _clientDiagnostics.CreateRequestFailedException(message.Response);
488switch (message.Response.Status)
493using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
495return Response.FromValue(value, message.Response);
498throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
508switch (message.Response.Status)
513using var document = JsonDocument.Parse(message.Response.ContentStream);
515return Response.FromValue(value, message.Response);
518throw _clientDiagnostics.CreateRequestFailedException(message.Response);
553switch (message.Response.Status)
558using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
560return Response.FromValue(value, message.Response);
563throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
580switch (message.Response.Status)
585using var document = JsonDocument.Parse(message.Response.ContentStream);
587return Response.FromValue(value, message.Response);
590throw _clientDiagnostics.CreateRequestFailedException(message.Response);
632switch (message.Response.Status)
637using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
639return Response.FromValue(value, message.Response);
642throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
664switch (message.Response.Status)
669using var document = JsonDocument.Parse(message.Response.ContentStream);
671return Response.FromValue(value, message.Response);
674throw _clientDiagnostics.CreateRequestFailedException(message.Response);
716switch (message.Response.Status)
721using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
723return Response.FromValue(value, message.Response);
726throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
748switch (message.Response.Status)
753using var document = JsonDocument.Parse(message.Response.ContentStream);
755return Response.FromValue(value, message.Response);
758throw _clientDiagnostics.CreateRequestFailedException(message.Response);
809switch (message.Response.Status)
813return message.Response;
815throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
842switch (message.Response.Status)
846return message.Response;
848throw _clientDiagnostics.CreateRequestFailedException(message.Response);
899switch (message.Response.Status)
903return message.Response;
905throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
932switch (message.Response.Status)
936return message.Response;
938throw _clientDiagnostics.CreateRequestFailedException(message.Response);
980switch (message.Response.Status)
985using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
987return Response.FromValue(value, message.Response);
990throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1012switch (message.Response.Status)
1017using var document = JsonDocument.Parse(message.Response.ContentStream);
1019return Response.FromValue(value, message.Response);
1022throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1064switch (message.Response.Status)
1069using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1071return Response.FromValue(value, message.Response);
1074throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1096switch (message.Response.Status)
1101using var document = JsonDocument.Parse(message.Response.ContentStream);
1103return Response.FromValue(value, message.Response);
1106throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1156switch (message.Response.Status)
1160return message.Response;
1162throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1189switch (message.Response.Status)
1193return message.Response;
1195throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1226switch (message.Response.Status)
1231return Response.FromValue(value, message.Response);
1236return Response.FromValue(value, message.Response);
1239throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1256switch (message.Response.Status)
1261return Response.FromValue(value, message.Response);
1266return Response.FromValue(value, message.Response);
1269throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1317switch (message.Response.Status)
1322using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1324return Response.FromValue(value, message.Response);
1327throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1354switch (message.Response.Status)
1359using var document = JsonDocument.Parse(message.Response.ContentStream);
1361return Response.FromValue(value, message.Response);
1364throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1411switch (message.Response.Status)
1416using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1418return Response.FromValue(value, message.Response);
1421throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1444switch (message.Response.Status)
1449using var document = JsonDocument.Parse(message.Response.ContentStream);
1451return Response.FromValue(value, message.Response);
1454throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1496switch (message.Response.Status)
1501using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1503return Response.FromValue(value, message.Response);
1506throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1528switch (message.Response.Status)
1533using var document = JsonDocument.Parse(message.Response.ContentStream);
1535return Response.FromValue(value, message.Response);
1538throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\DatabaseRestOperations.cs (24)
97switch (message.Response.Status)
102using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
104return Response.FromValue(value, message.Response);
107throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
139switch (message.Response.Status)
144using var document = JsonDocument.Parse(message.Response.ContentStream);
146return Response.FromValue(value, message.Response);
149throw _clientDiagnostics.CreateRequestFailedException(message.Response);
203switch (message.Response.Status)
208using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
210return Response.FromValue(value, message.Response);
213throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
241switch (message.Response.Status)
246using var document = JsonDocument.Parse(message.Response.ContentStream);
248return Response.FromValue(value, message.Response);
251throw _clientDiagnostics.CreateRequestFailedException(message.Response);
300switch (message.Response.Status)
305using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
307return Response.FromValue(value, message.Response);
310throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
337switch (message.Response.Status)
342using var document = JsonDocument.Parse(message.Response.ContentStream);
344return Response.FromValue(value, message.Response);
347throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\GremlinResourcesRestOperations.cs (108)
84switch (message.Response.Status)
89using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
91return Response.FromValue(value, message.Response);
94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
116switch (message.Response.Status)
121using var document = JsonDocument.Parse(message.Response.ContentStream);
123return Response.FromValue(value, message.Response);
126throw _clientDiagnostics.CreateRequestFailedException(message.Response);
174switch (message.Response.Status)
179using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
181return Response.FromValue(value, message.Response);
184throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
211switch (message.Response.Status)
216using var document = JsonDocument.Parse(message.Response.ContentStream);
218return Response.FromValue(value, message.Response);
221throw _clientDiagnostics.CreateRequestFailedException(message.Response);
278switch (message.Response.Status)
282return message.Response;
284throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
316switch (message.Response.Status)
320return message.Response;
322throw _clientDiagnostics.CreateRequestFailedException(message.Response);
369switch (message.Response.Status)
373return message.Response;
375throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
402switch (message.Response.Status)
406return message.Response;
408throw _clientDiagnostics.CreateRequestFailedException(message.Response);
457switch (message.Response.Status)
462using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
464return Response.FromValue(value, message.Response);
467throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
494switch (message.Response.Status)
499using var document = JsonDocument.Parse(message.Response.ContentStream);
501return Response.FromValue(value, message.Response);
504throw _clientDiagnostics.CreateRequestFailedException(message.Response);
562switch (message.Response.Status)
566return message.Response;
568throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
600switch (message.Response.Status)
604return message.Response;
606throw _clientDiagnostics.CreateRequestFailedException(message.Response);
655switch (message.Response.Status)
659return message.Response;
661throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
688switch (message.Response.Status)
692return message.Response;
694throw _clientDiagnostics.CreateRequestFailedException(message.Response);
743switch (message.Response.Status)
747return message.Response;
749throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
776switch (message.Response.Status)
780return message.Response;
782throw _clientDiagnostics.CreateRequestFailedException(message.Response);
831switch (message.Response.Status)
836using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
838return Response.FromValue(value, message.Response);
841throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
868switch (message.Response.Status)
873using var document = JsonDocument.Parse(message.Response.ContentStream);
875return Response.FromValue(value, message.Response);
878throw _clientDiagnostics.CreateRequestFailedException(message.Response);
933switch (message.Response.Status)
938using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
940return Response.FromValue(value, message.Response);
943throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
975switch (message.Response.Status)
980using var document = JsonDocument.Parse(message.Response.ContentStream);
982return Response.FromValue(value, message.Response);
985throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1049switch (message.Response.Status)
1053return message.Response;
1055throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1092switch (message.Response.Status)
1096return message.Response;
1098throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1152switch (message.Response.Status)
1156return message.Response;
1158throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1190switch (message.Response.Status)
1194return message.Response;
1196throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1252switch (message.Response.Status)
1257using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1259return Response.FromValue(value, message.Response);
1262throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1294switch (message.Response.Status)
1299using var document = JsonDocument.Parse(message.Response.ContentStream);
1301return Response.FromValue(value, message.Response);
1304throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1369switch (message.Response.Status)
1373return message.Response;
1375throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1412switch (message.Response.Status)
1416return message.Response;
1418throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1474switch (message.Response.Status)
1478return message.Response;
1480throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1512switch (message.Response.Status)
1516return message.Response;
1518throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1574switch (message.Response.Status)
1578return message.Response;
1580throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1612switch (message.Response.Status)
1616return message.Response;
1618throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\MongoDBResourcesRestOperations.cs (108)
84switch (message.Response.Status)
89using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
91return Response.FromValue(value, message.Response);
94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
116switch (message.Response.Status)
121using var document = JsonDocument.Parse(message.Response.ContentStream);
123return Response.FromValue(value, message.Response);
126throw _clientDiagnostics.CreateRequestFailedException(message.Response);
174switch (message.Response.Status)
179using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
181return Response.FromValue(value, message.Response);
184throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
211switch (message.Response.Status)
216using var document = JsonDocument.Parse(message.Response.ContentStream);
218return Response.FromValue(value, message.Response);
221throw _clientDiagnostics.CreateRequestFailedException(message.Response);
278switch (message.Response.Status)
282return message.Response;
284throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
316switch (message.Response.Status)
320return message.Response;
322throw _clientDiagnostics.CreateRequestFailedException(message.Response);
369switch (message.Response.Status)
373return message.Response;
375throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
402switch (message.Response.Status)
406return message.Response;
408throw _clientDiagnostics.CreateRequestFailedException(message.Response);
457switch (message.Response.Status)
462using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
464return Response.FromValue(value, message.Response);
467throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
494switch (message.Response.Status)
499using var document = JsonDocument.Parse(message.Response.ContentStream);
501return Response.FromValue(value, message.Response);
504throw _clientDiagnostics.CreateRequestFailedException(message.Response);
562switch (message.Response.Status)
566return message.Response;
568throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
600switch (message.Response.Status)
604return message.Response;
606throw _clientDiagnostics.CreateRequestFailedException(message.Response);
655switch (message.Response.Status)
659return message.Response;
661throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
688switch (message.Response.Status)
692return message.Response;
694throw _clientDiagnostics.CreateRequestFailedException(message.Response);
743switch (message.Response.Status)
747return message.Response;
749throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
776switch (message.Response.Status)
780return message.Response;
782throw _clientDiagnostics.CreateRequestFailedException(message.Response);
831switch (message.Response.Status)
836using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
838return Response.FromValue(value, message.Response);
841throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
868switch (message.Response.Status)
873using var document = JsonDocument.Parse(message.Response.ContentStream);
875return Response.FromValue(value, message.Response);
878throw _clientDiagnostics.CreateRequestFailedException(message.Response);
933switch (message.Response.Status)
938using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
940return Response.FromValue(value, message.Response);
943throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
975switch (message.Response.Status)
980using var document = JsonDocument.Parse(message.Response.ContentStream);
982return Response.FromValue(value, message.Response);
985throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1049switch (message.Response.Status)
1053return message.Response;
1055throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1092switch (message.Response.Status)
1096return message.Response;
1098throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1152switch (message.Response.Status)
1156return message.Response;
1158throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1190switch (message.Response.Status)
1194return message.Response;
1196throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1252switch (message.Response.Status)
1257using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1259return Response.FromValue(value, message.Response);
1262throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1294switch (message.Response.Status)
1299using var document = JsonDocument.Parse(message.Response.ContentStream);
1301return Response.FromValue(value, message.Response);
1304throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1369switch (message.Response.Status)
1373return message.Response;
1375throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1412switch (message.Response.Status)
1416return message.Response;
1418throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1474switch (message.Response.Status)
1478return message.Response;
1480throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1512switch (message.Response.Status)
1516return message.Response;
1518throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1574switch (message.Response.Status)
1578return message.Response;
1580throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1612switch (message.Response.Status)
1616return message.Response;
1618throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\NotebookWorkspacesRestOperations.cs (48)
84switch (message.Response.Status)
89using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
91return Response.FromValue(value, message.Response);
94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
116switch (message.Response.Status)
121using var document = JsonDocument.Parse(message.Response.ContentStream);
123return Response.FromValue(value, message.Response);
126throw _clientDiagnostics.CreateRequestFailedException(message.Response);
170switch (message.Response.Status)
175using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
177return Response.FromValue(value, message.Response);
180throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
203switch (message.Response.Status)
208using var document = JsonDocument.Parse(message.Response.ContentStream);
210return Response.FromValue(value, message.Response);
213throw _clientDiagnostics.CreateRequestFailedException(message.Response);
266switch (message.Response.Status)
269return message.Response;
271throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
299switch (message.Response.Status)
302return message.Response;
304throw _clientDiagnostics.CreateRequestFailedException(message.Response);
348switch (message.Response.Status)
352return message.Response;
354throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
377switch (message.Response.Status)
381return message.Response;
383throw _clientDiagnostics.CreateRequestFailedException(message.Response);
428switch (message.Response.Status)
433using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
435return Response.FromValue(value, message.Response);
438throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
461switch (message.Response.Status)
466using var document = JsonDocument.Parse(message.Response.ContentStream);
468return Response.FromValue(value, message.Response);
471throw _clientDiagnostics.CreateRequestFailedException(message.Response);
516switch (message.Response.Status)
520return message.Response;
522throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
545switch (message.Response.Status)
549return message.Response;
551throw _clientDiagnostics.CreateRequestFailedException(message.Response);
596switch (message.Response.Status)
600return message.Response;
602throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
625switch (message.Response.Status)
629return message.Response;
631throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\SqlResourcesRestOperations.cs (192)
84switch (message.Response.Status)
89using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
91return Response.FromValue(value, message.Response);
94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
116switch (message.Response.Status)
121using var document = JsonDocument.Parse(message.Response.ContentStream);
123return Response.FromValue(value, message.Response);
126throw _clientDiagnostics.CreateRequestFailedException(message.Response);
174switch (message.Response.Status)
179using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
181return Response.FromValue(value, message.Response);
184throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
211switch (message.Response.Status)
216using var document = JsonDocument.Parse(message.Response.ContentStream);
218return Response.FromValue(value, message.Response);
221throw _clientDiagnostics.CreateRequestFailedException(message.Response);
278switch (message.Response.Status)
282return message.Response;
284throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
316switch (message.Response.Status)
320return message.Response;
322throw _clientDiagnostics.CreateRequestFailedException(message.Response);
369switch (message.Response.Status)
373return message.Response;
375throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
402switch (message.Response.Status)
406return message.Response;
408throw _clientDiagnostics.CreateRequestFailedException(message.Response);
457switch (message.Response.Status)
462using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
464return Response.FromValue(value, message.Response);
467throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
494switch (message.Response.Status)
499using var document = JsonDocument.Parse(message.Response.ContentStream);
501return Response.FromValue(value, message.Response);
504throw _clientDiagnostics.CreateRequestFailedException(message.Response);
562switch (message.Response.Status)
566return message.Response;
568throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
600switch (message.Response.Status)
604return message.Response;
606throw _clientDiagnostics.CreateRequestFailedException(message.Response);
655switch (message.Response.Status)
659return message.Response;
661throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
688switch (message.Response.Status)
692return message.Response;
694throw _clientDiagnostics.CreateRequestFailedException(message.Response);
743switch (message.Response.Status)
747return message.Response;
749throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
776switch (message.Response.Status)
780return message.Response;
782throw _clientDiagnostics.CreateRequestFailedException(message.Response);
831switch (message.Response.Status)
836using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
838return Response.FromValue(value, message.Response);
841throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
868switch (message.Response.Status)
873using var document = JsonDocument.Parse(message.Response.ContentStream);
875return Response.FromValue(value, message.Response);
878throw _clientDiagnostics.CreateRequestFailedException(message.Response);
933switch (message.Response.Status)
938using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
940return Response.FromValue(value, message.Response);
943throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
975switch (message.Response.Status)
980using var document = JsonDocument.Parse(message.Response.ContentStream);
982return Response.FromValue(value, message.Response);
985throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1049switch (message.Response.Status)
1053return message.Response;
1055throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1092switch (message.Response.Status)
1096return message.Response;
1098throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1152switch (message.Response.Status)
1156return message.Response;
1158throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1190switch (message.Response.Status)
1194return message.Response;
1196throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1252switch (message.Response.Status)
1257using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1259return Response.FromValue(value, message.Response);
1262throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1294switch (message.Response.Status)
1299using var document = JsonDocument.Parse(message.Response.ContentStream);
1301return Response.FromValue(value, message.Response);
1304throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1369switch (message.Response.Status)
1373return message.Response;
1375throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1412switch (message.Response.Status)
1416return message.Response;
1418throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1474switch (message.Response.Status)
1478return message.Response;
1480throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1512switch (message.Response.Status)
1516return message.Response;
1518throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1574switch (message.Response.Status)
1578return message.Response;
1580throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1612switch (message.Response.Status)
1616return message.Response;
1618throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1674switch (message.Response.Status)
1679using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1681return Response.FromValue(value, message.Response);
1684throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1716switch (message.Response.Status)
1721using var document = JsonDocument.Parse(message.Response.ContentStream);
1723return Response.FromValue(value, message.Response);
1726throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1788switch (message.Response.Status)
1793using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1795return Response.FromValue(value, message.Response);
1798throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1835switch (message.Response.Status)
1840using var document = JsonDocument.Parse(message.Response.ContentStream);
1842return Response.FromValue(value, message.Response);
1845throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1916switch (message.Response.Status)
1920return message.Response;
1922throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1964switch (message.Response.Status)
1968return message.Response;
1970throw _clientDiagnostics.CreateRequestFailedException(message.Response);
2031switch (message.Response.Status)
2035return message.Response;
2037throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
2074switch (message.Response.Status)
2078return message.Response;
2080throw _clientDiagnostics.CreateRequestFailedException(message.Response);
2136switch (message.Response.Status)
2141using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
2143return Response.FromValue(value, message.Response);
2146throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
2178switch (message.Response.Status)
2183using var document = JsonDocument.Parse(message.Response.ContentStream);
2185return Response.FromValue(value, message.Response);
2188throw _clientDiagnostics.CreateRequestFailedException(message.Response);
2250switch (message.Response.Status)
2255using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
2257return Response.FromValue(value, message.Response);
2260throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
2297switch (message.Response.Status)
2302using var document = JsonDocument.Parse(message.Response.ContentStream);
2304return Response.FromValue(value, message.Response);
2307throw _clientDiagnostics.CreateRequestFailedException(message.Response);
2378switch (message.Response.Status)
2382return message.Response;
2384throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
2426switch (message.Response.Status)
2430return message.Response;
2432throw _clientDiagnostics.CreateRequestFailedException(message.Response);
2493switch (message.Response.Status)
2497return message.Response;
2499throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
2536switch (message.Response.Status)
2540return message.Response;
2542throw _clientDiagnostics.CreateRequestFailedException(message.Response);
2598switch (message.Response.Status)
2603using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
2605return Response.FromValue(value, message.Response);
2608throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
2640switch (message.Response.Status)
2645using var document = JsonDocument.Parse(message.Response.ContentStream);
2647return Response.FromValue(value, message.Response);
2650throw _clientDiagnostics.CreateRequestFailedException(message.Response);
2712switch (message.Response.Status)
2717using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
2719return Response.FromValue(value, message.Response);
2722throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
2759switch (message.Response.Status)
2764using var document = JsonDocument.Parse(message.Response.ContentStream);
2766return Response.FromValue(value, message.Response);
2769throw _clientDiagnostics.CreateRequestFailedException(message.Response);
2840switch (message.Response.Status)
2844return message.Response;
2846throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
2888switch (message.Response.Status)
2892return message.Response;
2894throw _clientDiagnostics.CreateRequestFailedException(message.Response);
2955switch (message.Response.Status)
2959return message.Response;
2961throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
2998switch (message.Response.Status)
3002return message.Response;
3004throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\TableResourcesRestOperations.cs (54)
84switch (message.Response.Status)
89using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
91return Response.FromValue(value, message.Response);
94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
116switch (message.Response.Status)
121using var document = JsonDocument.Parse(message.Response.ContentStream);
123return Response.FromValue(value, message.Response);
126throw _clientDiagnostics.CreateRequestFailedException(message.Response);
174switch (message.Response.Status)
179using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
181return Response.FromValue(value, message.Response);
184throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
211switch (message.Response.Status)
216using var document = JsonDocument.Parse(message.Response.ContentStream);
218return Response.FromValue(value, message.Response);
221throw _clientDiagnostics.CreateRequestFailedException(message.Response);
278switch (message.Response.Status)
282return message.Response;
284throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
316switch (message.Response.Status)
320return message.Response;
322throw _clientDiagnostics.CreateRequestFailedException(message.Response);
369switch (message.Response.Status)
373return message.Response;
375throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
402switch (message.Response.Status)
406return message.Response;
408throw _clientDiagnostics.CreateRequestFailedException(message.Response);
457switch (message.Response.Status)
462using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
464return Response.FromValue(value, message.Response);
467throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
494switch (message.Response.Status)
499using var document = JsonDocument.Parse(message.Response.ContentStream);
501return Response.FromValue(value, message.Response);
504throw _clientDiagnostics.CreateRequestFailedException(message.Response);
562switch (message.Response.Status)
566return message.Response;
568throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
600switch (message.Response.Status)
604return message.Response;
606throw _clientDiagnostics.CreateRequestFailedException(message.Response);
655switch (message.Response.Status)
659return message.Response;
661throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
688switch (message.Response.Status)
692return message.Response;
694throw _clientDiagnostics.CreateRequestFailedException(message.Response);
743switch (message.Response.Status)
747return message.Response;
749throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
776switch (message.Response.Status)
780return message.Response;
782throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Azure.ResourceManager.Dns (150)
Generated\RecordSetsRestOperations.cs (78)
114switch (message.Response.Status)
119using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
121return Response.FromValue(value, message.Response);
124throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
158switch (message.Response.Status)
163using var document = JsonDocument.Parse(message.Response.ContentStream);
165return Response.FromValue(value, message.Response);
168throw _clientDiagnostics.CreateRequestFailedException(message.Response);
238switch (message.Response.Status)
244using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
246return Response.FromValue(value, message.Response);
249throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
284switch (message.Response.Status)
290using var document = JsonDocument.Parse(message.Response.ContentStream);
292return Response.FromValue(value, message.Response);
295throw _clientDiagnostics.CreateRequestFailedException(message.Response);
351switch (message.Response.Status)
355return message.Response;
357throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
386switch (message.Response.Status)
390return message.Response;
392throw _clientDiagnostics.CreateRequestFailedException(message.Response);
443switch (message.Response.Status)
448using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
450return Response.FromValue(value, message.Response);
453throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
481switch (message.Response.Status)
486using var document = JsonDocument.Parse(message.Response.ContentStream);
488return Response.FromValue(value, message.Response);
491throw _clientDiagnostics.CreateRequestFailedException(message.Response);
545switch (message.Response.Status)
550using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
552return Response.FromValue(value, message.Response);
555throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
580switch (message.Response.Status)
585using var document = JsonDocument.Parse(message.Response.ContentStream);
587return Response.FromValue(value, message.Response);
590throw _clientDiagnostics.CreateRequestFailedException(message.Response);
642switch (message.Response.Status)
647using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
649return Response.FromValue(value, message.Response);
652throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
676switch (message.Response.Status)
681using var document = JsonDocument.Parse(message.Response.ContentStream);
683return Response.FromValue(value, message.Response);
686throw _clientDiagnostics.CreateRequestFailedException(message.Response);
738switch (message.Response.Status)
743using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
745return Response.FromValue(value, message.Response);
748throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
772switch (message.Response.Status)
777using var document = JsonDocument.Parse(message.Response.ContentStream);
779return Response.FromValue(value, message.Response);
782throw _clientDiagnostics.CreateRequestFailedException(message.Response);
825switch (message.Response.Status)
830using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
832return Response.FromValue(value, message.Response);
835throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
865switch (message.Response.Status)
870using var document = JsonDocument.Parse(message.Response.ContentStream);
872return Response.FromValue(value, message.Response);
875throw _clientDiagnostics.CreateRequestFailedException(message.Response);
917switch (message.Response.Status)
922using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
924return Response.FromValue(value, message.Response);
927throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
956switch (message.Response.Status)
961using var document = JsonDocument.Parse(message.Response.ContentStream);
963return Response.FromValue(value, message.Response);
966throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1008switch (message.Response.Status)
1013using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1015return Response.FromValue(value, message.Response);
1018throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1047switch (message.Response.Status)
1052using var document = JsonDocument.Parse(message.Response.ContentStream);
1054return Response.FromValue(value, message.Response);
1057throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ZonesRestOperations.cs (62)
109switch (message.Response.Status)
115using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
117return Response.FromValue(value, message.Response);
120throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
149switch (message.Response.Status)
155using var document = JsonDocument.Parse(message.Response.ContentStream);
157return Response.FromValue(value, message.Response);
160throw _clientDiagnostics.CreateRequestFailedException(message.Response);
206switch (message.Response.Status)
211return message.Response;
213throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
236switch (message.Response.Status)
241return message.Response;
243throw _clientDiagnostics.CreateRequestFailedException(message.Response);
284switch (message.Response.Status)
289using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
291return Response.FromValue(value, message.Response);
294throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
316switch (message.Response.Status)
321using var document = JsonDocument.Parse(message.Response.ContentStream);
323return Response.FromValue(value, message.Response);
326throw _clientDiagnostics.CreateRequestFailedException(message.Response);
381switch (message.Response.Status)
386using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
388return Response.FromValue(value, message.Response);
391throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
419switch (message.Response.Status)
424using var document = JsonDocument.Parse(message.Response.ContentStream);
426return Response.FromValue(value, message.Response);
429throw _clientDiagnostics.CreateRequestFailedException(message.Response);
469switch (message.Response.Status)
474using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
476return Response.FromValue(value, message.Response);
479throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
497switch (message.Response.Status)
502using var document = JsonDocument.Parse(message.Response.ContentStream);
504return Response.FromValue(value, message.Response);
507throw _clientDiagnostics.CreateRequestFailedException(message.Response);
538switch (message.Response.Status)
543using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
545return Response.FromValue(value, message.Response);
548throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
559switch (message.Response.Status)
564using var document = JsonDocument.Parse(message.Response.ContentStream);
566return Response.FromValue(value, message.Response);
569throw _clientDiagnostics.CreateRequestFailedException(message.Response);
605switch (message.Response.Status)
610using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
612return Response.FromValue(value, message.Response);
615throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
638switch (message.Response.Status)
643using var document = JsonDocument.Parse(message.Response.ContentStream);
645return Response.FromValue(value, message.Response);
648throw _clientDiagnostics.CreateRequestFailedException(message.Response);
679switch (message.Response.Status)
684using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
686return Response.FromValue(value, message.Response);
689throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
707switch (message.Response.Status)
712using var document = JsonDocument.Parse(message.Response.ContentStream);
714return Response.FromValue(value, message.Response);
717throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Azure.ResourceManager.EventHubs (548)
Generated\ClustersRestOperations.cs (58)
68switch (message.Response.Status)
73using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
75return Response.FromValue(value, message.Response);
78throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
88switch (message.Response.Status)
93using var document = JsonDocument.Parse(message.Response.ContentStream);
95return Response.FromValue(value, message.Response);
98throw _clientDiagnostics.CreateRequestFailedException(message.Response);
133switch (message.Response.Status)
138using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
140return Response.FromValue(value, message.Response);
143throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
160switch (message.Response.Status)
165using var document = JsonDocument.Parse(message.Response.ContentStream);
167return Response.FromValue(value, message.Response);
170throw _clientDiagnostics.CreateRequestFailedException(message.Response);
211switch (message.Response.Status)
216using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
218return Response.FromValue(value, message.Response);
221throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
243switch (message.Response.Status)
248using var document = JsonDocument.Parse(message.Response.ContentStream);
250return Response.FromValue(value, message.Response);
253throw _clientDiagnostics.CreateRequestFailedException(message.Response);
294switch (message.Response.Status)
299return message.Response;
301throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
323switch (message.Response.Status)
328return message.Response;
330throw _clientDiagnostics.CreateRequestFailedException(message.Response);
380switch (message.Response.Status)
385return message.Response;
387throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
414switch (message.Response.Status)
419return message.Response;
421throw _clientDiagnostics.CreateRequestFailedException(message.Response);
462switch (message.Response.Status)
467return message.Response;
469throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
491switch (message.Response.Status)
496return message.Response;
498throw _clientDiagnostics.CreateRequestFailedException(message.Response);
540switch (message.Response.Status)
545using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
547return Response.FromValue(value, message.Response);
550throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
572switch (message.Response.Status)
577using var document = JsonDocument.Parse(message.Response.ContentStream);
579return Response.FromValue(value, message.Response);
582throw _clientDiagnostics.CreateRequestFailedException(message.Response);
617switch (message.Response.Status)
622using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
624return Response.FromValue(value, message.Response);
627throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
649switch (message.Response.Status)
654using var document = JsonDocument.Parse(message.Response.ContentStream);
656return Response.FromValue(value, message.Response);
659throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ConfigurationRestOperations.cs (18)
93switch (message.Response.Status)
99using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
101return Response.FromValue(value, message.Response);
104return Response.FromValue<ClusterQuotaConfigurationProperties>(null, message.Response);
106throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
133switch (message.Response.Status)
139using var document = JsonDocument.Parse(message.Response.ContentStream);
141return Response.FromValue(value, message.Response);
144return Response.FromValue<ClusterQuotaConfigurationProperties>(null, message.Response);
146throw _clientDiagnostics.CreateRequestFailedException(message.Response);
188switch (message.Response.Status)
193using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
195return Response.FromValue(value, message.Response);
198throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
220switch (message.Response.Status)
225using var document = JsonDocument.Parse(message.Response.ContentStream);
227return Response.FromValue(value, message.Response);
230throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ConsumerGroupsRestOperations.cs (38)
106switch (message.Response.Status)
111using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
113return Response.FromValue(value, message.Response);
116throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
153switch (message.Response.Status)
158using var document = JsonDocument.Parse(message.Response.ContentStream);
160return Response.FromValue(value, message.Response);
163throw _clientDiagnostics.CreateRequestFailedException(message.Response);
218switch (message.Response.Status)
222return message.Response;
224throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
256switch (message.Response.Status)
260return message.Response;
262throw _clientDiagnostics.CreateRequestFailedException(message.Response);
317switch (message.Response.Status)
322using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
324return Response.FromValue(value, message.Response);
327throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
359switch (message.Response.Status)
364using var document = JsonDocument.Parse(message.Response.ContentStream);
366return Response.FromValue(value, message.Response);
369throw _clientDiagnostics.CreateRequestFailedException(message.Response);
428switch (message.Response.Status)
433using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
435return Response.FromValue(value, message.Response);
438throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
467switch (message.Response.Status)
472using var document = JsonDocument.Parse(message.Response.ContentStream);
474return Response.FromValue(value, message.Response);
477throw _clientDiagnostics.CreateRequestFailedException(message.Response);
524switch (message.Response.Status)
529using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
531return Response.FromValue(value, message.Response);
534throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
568switch (message.Response.Status)
573using var document = JsonDocument.Parse(message.Response.ContentStream);
575return Response.FromValue(value, message.Response);
578throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\DisasterRecoveryConfigsRestOperations.cs (92)
91switch (message.Response.Status)
96using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
98return Response.FromValue(value, message.Response);
101throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
128switch (message.Response.Status)
133using var document = JsonDocument.Parse(message.Response.ContentStream);
135return Response.FromValue(value, message.Response);
138throw _clientDiagnostics.CreateRequestFailedException(message.Response);
193switch (message.Response.Status)
198using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
200return Response.FromValue(value, message.Response);
203throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
235switch (message.Response.Status)
240using var document = JsonDocument.Parse(message.Response.ContentStream);
242return Response.FromValue(value, message.Response);
245throw _clientDiagnostics.CreateRequestFailedException(message.Response);
301switch (message.Response.Status)
306using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
308return Response.FromValue(value, message.Response);
311throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
343switch (message.Response.Status)
348using var document = JsonDocument.Parse(message.Response.ContentStream);
350return Response.FromValue(value, message.Response);
353throw _clientDiagnostics.CreateRequestFailedException(message.Response);
404switch (message.Response.Status)
409using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
411return Response.FromValue(value, message.Response);
414throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
441switch (message.Response.Status)
446using var document = JsonDocument.Parse(message.Response.ContentStream);
448return Response.FromValue(value, message.Response);
451throw _clientDiagnostics.CreateRequestFailedException(message.Response);
493switch (message.Response.Status)
498using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
500return Response.FromValue(value, message.Response);
503throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
525switch (message.Response.Status)
530using var document = JsonDocument.Parse(message.Response.ContentStream);
532return Response.FromValue(value, message.Response);
535throw _clientDiagnostics.CreateRequestFailedException(message.Response);
592switch (message.Response.Status)
597using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
599return Response.FromValue(value, message.Response);
602return Response.FromValue<ArmDisasterRecovery>(null, message.Response);
604throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
636switch (message.Response.Status)
641using var document = JsonDocument.Parse(message.Response.ContentStream);
643return Response.FromValue(value, message.Response);
646return Response.FromValue<ArmDisasterRecovery>(null, message.Response);
648throw _clientDiagnostics.CreateRequestFailedException(message.Response);
696switch (message.Response.Status)
699return message.Response;
701throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
728switch (message.Response.Status)
731return message.Response;
733throw _clientDiagnostics.CreateRequestFailedException(message.Response);
781switch (message.Response.Status)
786using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
788return Response.FromValue(value, message.Response);
791throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
818switch (message.Response.Status)
823using var document = JsonDocument.Parse(message.Response.ContentStream);
825return Response.FromValue(value, message.Response);
828throw _clientDiagnostics.CreateRequestFailedException(message.Response);
877switch (message.Response.Status)
880return message.Response;
882throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
909switch (message.Response.Status)
912return message.Response;
914throw _clientDiagnostics.CreateRequestFailedException(message.Response);
963switch (message.Response.Status)
966return message.Response;
968throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
995switch (message.Response.Status)
998return message.Response;
1000throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1045switch (message.Response.Status)
1050using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1052return Response.FromValue(value, message.Response);
1055throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1087switch (message.Response.Status)
1092using var document = JsonDocument.Parse(message.Response.ContentStream);
1094return Response.FromValue(value, message.Response);
1097throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1137switch (message.Response.Status)
1142using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1144return Response.FromValue(value, message.Response);
1147throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1174switch (message.Response.Status)
1179using var document = JsonDocument.Parse(message.Response.ContentStream);
1181return Response.FromValue(value, message.Response);
1184throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\EventHubsRestOperations.cs (92)
91switch (message.Response.Status)
96using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
98return Response.FromValue(value, message.Response);
101throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
128switch (message.Response.Status)
133using var document = JsonDocument.Parse(message.Response.ContentStream);
135return Response.FromValue(value, message.Response);
138throw _clientDiagnostics.CreateRequestFailedException(message.Response);
202switch (message.Response.Status)
207using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
209return Response.FromValue(value, message.Response);
212throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
249switch (message.Response.Status)
254using var document = JsonDocument.Parse(message.Response.ContentStream);
256return Response.FromValue(value, message.Response);
259throw _clientDiagnostics.CreateRequestFailedException(message.Response);
314switch (message.Response.Status)
319using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
321return Response.FromValue(value, message.Response);
324throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
356switch (message.Response.Status)
361using var document = JsonDocument.Parse(message.Response.ContentStream);
363return Response.FromValue(value, message.Response);
366throw _clientDiagnostics.CreateRequestFailedException(message.Response);
421switch (message.Response.Status)
425return message.Response;
427throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
459switch (message.Response.Status)
463return message.Response;
465throw _clientDiagnostics.CreateRequestFailedException(message.Response);
521switch (message.Response.Status)
526using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
528return Response.FromValue(value, message.Response);
531throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
563switch (message.Response.Status)
568using var document = JsonDocument.Parse(message.Response.ContentStream);
570return Response.FromValue(value, message.Response);
573throw _clientDiagnostics.CreateRequestFailedException(message.Response);
638switch (message.Response.Status)
643using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
645return Response.FromValue(value, message.Response);
648throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
685switch (message.Response.Status)
690using var document = JsonDocument.Parse(message.Response.ContentStream);
692return Response.FromValue(value, message.Response);
695throw _clientDiagnostics.CreateRequestFailedException(message.Response);
747switch (message.Response.Status)
752using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
754return Response.FromValue(value, message.Response);
757throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
781switch (message.Response.Status)
786using var document = JsonDocument.Parse(message.Response.ContentStream);
788return Response.FromValue(value, message.Response);
791throw _clientDiagnostics.CreateRequestFailedException(message.Response);
848switch (message.Response.Status)
853using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
855return Response.FromValue(value, message.Response);
858throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
890switch (message.Response.Status)
895using var document = JsonDocument.Parse(message.Response.ContentStream);
897return Response.FromValue(value, message.Response);
900throw _clientDiagnostics.CreateRequestFailedException(message.Response);
948switch (message.Response.Status)
952return message.Response;
954throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
981switch (message.Response.Status)
985return message.Response;
987throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1035switch (message.Response.Status)
1040using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1042return Response.FromValue(value, message.Response);
1045throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1072switch (message.Response.Status)
1077using var document = JsonDocument.Parse(message.Response.ContentStream);
1079return Response.FromValue(value, message.Response);
1082throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1127switch (message.Response.Status)
1132using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1134return Response.FromValue(value, message.Response);
1137throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1169switch (message.Response.Status)
1174using var document = JsonDocument.Parse(message.Response.ContentStream);
1176return Response.FromValue(value, message.Response);
1179throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1221switch (message.Response.Status)
1226using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1228return Response.FromValue(value, message.Response);
1231throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1260switch (message.Response.Status)
1265using var document = JsonDocument.Parse(message.Response.ContentStream);
1267return Response.FromValue(value, message.Response);
1270throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\NamespacesRestOperations.cs (216)
84switch (message.Response.Status)
89using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
91return Response.FromValue(value, message.Response);
94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
116switch (message.Response.Status)
121using var document = JsonDocument.Parse(message.Response.ContentStream);
123return Response.FromValue(value, message.Response);
126throw _clientDiagnostics.CreateRequestFailedException(message.Response);
183switch (message.Response.Status)
188using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
190return Response.FromValue(value, message.Response);
193throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
225switch (message.Response.Status)
230using var document = JsonDocument.Parse(message.Response.ContentStream);
232return Response.FromValue(value, message.Response);
235throw _clientDiagnostics.CreateRequestFailedException(message.Response);
283switch (message.Response.Status)
287return message.Response;
289throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
316switch (message.Response.Status)
320return message.Response;
322throw _clientDiagnostics.CreateRequestFailedException(message.Response);
370switch (message.Response.Status)
375using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
377return Response.FromValue(value, message.Response);
380throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
407switch (message.Response.Status)
412using var document = JsonDocument.Parse(message.Response.ContentStream);
414return Response.FromValue(value, message.Response);
417throw _clientDiagnostics.CreateRequestFailedException(message.Response);
443switch (message.Response.Status)
448using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
450return Response.FromValue(value, message.Response);
453throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
463switch (message.Response.Status)
468using var document = JsonDocument.Parse(message.Response.ContentStream);
470return Response.FromValue(value, message.Response);
473throw _clientDiagnostics.CreateRequestFailedException(message.Response);
508switch (message.Response.Status)
513using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
515return Response.FromValue(value, message.Response);
518throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
535switch (message.Response.Status)
540using var document = JsonDocument.Parse(message.Response.ContentStream);
542return Response.FromValue(value, message.Response);
545throw _clientDiagnostics.CreateRequestFailedException(message.Response);
595switch (message.Response.Status)
600return message.Response;
602throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
629switch (message.Response.Status)
634return message.Response;
636throw _clientDiagnostics.CreateRequestFailedException(message.Response);
677switch (message.Response.Status)
682return message.Response;
684throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
706switch (message.Response.Status)
711return message.Response;
713throw _clientDiagnostics.CreateRequestFailedException(message.Response);
754switch (message.Response.Status)
760using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
762return Response.FromValue(value, message.Response);
765throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
787switch (message.Response.Status)
793using var document = JsonDocument.Parse(message.Response.ContentStream);
795return Response.FromValue(value, message.Response);
798throw _clientDiagnostics.CreateRequestFailedException(message.Response);
848switch (message.Response.Status)
854using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
856return Response.FromValue(value, message.Response);
859return Response.FromValue<EHNamespace>(null, message.Response);
861throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
888switch (message.Response.Status)
894using var document = JsonDocument.Parse(message.Response.ContentStream);
896return Response.FromValue(value, message.Response);
899return Response.FromValue<EHNamespace>(null, message.Response);
901throw _clientDiagnostics.CreateRequestFailedException(message.Response);
943switch (message.Response.Status)
948using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
950return Response.FromValue(value, message.Response);
953throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
975switch (message.Response.Status)
980using var document = JsonDocument.Parse(message.Response.ContentStream);
982return Response.FromValue(value, message.Response);
985throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1042switch (message.Response.Status)
1047using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1049return Response.FromValue(value, message.Response);
1052throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1084switch (message.Response.Status)
1089using var document = JsonDocument.Parse(message.Response.ContentStream);
1091return Response.FromValue(value, message.Response);
1094throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1142switch (message.Response.Status)
1146return message.Response;
1148throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1175switch (message.Response.Status)
1179return message.Response;
1181throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1229switch (message.Response.Status)
1234using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1236return Response.FromValue(value, message.Response);
1239throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1266switch (message.Response.Status)
1271using var document = JsonDocument.Parse(message.Response.ContentStream);
1273return Response.FromValue(value, message.Response);
1276throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1327switch (message.Response.Status)
1332using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1334return Response.FromValue(value, message.Response);
1337throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1364switch (message.Response.Status)
1369using var document = JsonDocument.Parse(message.Response.ContentStream);
1371return Response.FromValue(value, message.Response);
1374throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1416switch (message.Response.Status)
1421using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1423return Response.FromValue(value, message.Response);
1426throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1448switch (message.Response.Status)
1453using var document = JsonDocument.Parse(message.Response.ContentStream);
1455return Response.FromValue(value, message.Response);
1458throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1500switch (message.Response.Status)
1505using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1507return Response.FromValue(value, message.Response);
1510throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1532switch (message.Response.Status)
1537using var document = JsonDocument.Parse(message.Response.ContentStream);
1539return Response.FromValue(value, message.Response);
1542throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1599switch (message.Response.Status)
1604using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1606return Response.FromValue(value, message.Response);
1609throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1641switch (message.Response.Status)
1646using var document = JsonDocument.Parse(message.Response.ContentStream);
1648return Response.FromValue(value, message.Response);
1651throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1699switch (message.Response.Status)
1703return message.Response;
1705throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1732switch (message.Response.Status)
1736return message.Response;
1738throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1786switch (message.Response.Status)
1791using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1793return Response.FromValue(value, message.Response);
1796throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1823switch (message.Response.Status)
1828using var document = JsonDocument.Parse(message.Response.ContentStream);
1830return Response.FromValue(value, message.Response);
1833throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1882switch (message.Response.Status)
1887using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1889return Response.FromValue(value, message.Response);
1892throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1919switch (message.Response.Status)
1924using var document = JsonDocument.Parse(message.Response.ContentStream);
1926return Response.FromValue(value, message.Response);
1929throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1987switch (message.Response.Status)
1992using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1994return Response.FromValue(value, message.Response);
1997throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
2029switch (message.Response.Status)
2034using var document = JsonDocument.Parse(message.Response.ContentStream);
2036return Response.FromValue(value, message.Response);
2039throw _clientDiagnostics.CreateRequestFailedException(message.Response);
2076switch (message.Response.Status)
2081using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
2083return Response.FromValue(value, message.Response);
2086throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
2103switch (message.Response.Status)
2108using var document = JsonDocument.Parse(message.Response.ContentStream);
2110return Response.FromValue(value, message.Response);
2113throw _clientDiagnostics.CreateRequestFailedException(message.Response);
2153switch (message.Response.Status)
2158using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
2160return Response.FromValue(value, message.Response);
2163throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
2190switch (message.Response.Status)
2195using var document = JsonDocument.Parse(message.Response.ContentStream);
2197return Response.FromValue(value, message.Response);
2200throw _clientDiagnostics.CreateRequestFailedException(message.Response);
2230switch (message.Response.Status)
2235using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
2237return Response.FromValue(value, message.Response);
2240throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
2257switch (message.Response.Status)
2262using var document = JsonDocument.Parse(message.Response.ContentStream);
2264return Response.FromValue(value, message.Response);
2267throw _clientDiagnostics.CreateRequestFailedException(message.Response);
2302switch (message.Response.Status)
2307using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
2309return Response.FromValue(value, message.Response);
2312throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
2334switch (message.Response.Status)
2339using var document = JsonDocument.Parse(message.Response.ContentStream);
2341return Response.FromValue(value, message.Response);
2344throw _clientDiagnostics.CreateRequestFailedException(message.Response);
2384switch (message.Response.Status)
2389using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
2391return Response.FromValue(value, message.Response);
2394throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
2421switch (message.Response.Status)
2426using var document = JsonDocument.Parse(message.Response.ContentStream);
2428return Response.FromValue(value, message.Response);
2431throw _clientDiagnostics.CreateRequestFailedException(message.Response);
2471switch (message.Response.Status)
2476using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
2478return Response.FromValue(value, message.Response);
2481throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
2508switch (message.Response.Status)
2513using var document = JsonDocument.Parse(message.Response.ContentStream);
2515return Response.FromValue(value, message.Response);
2518throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Azure.ResourceManager.Insights (520)
Generated\ActionGroupsRestOperations.cs (52)
92switch (message.Response.Status)
98using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
100return Response.FromValue(value, message.Response);
103throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
130switch (message.Response.Status)
136using var document = JsonDocument.Parse(message.Response.ContentStream);
138return Response.FromValue(value, message.Response);
141throw _clientDiagnostics.CreateRequestFailedException(message.Response);
182switch (message.Response.Status)
187using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
189return Response.FromValue(value, message.Response);
192throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
214switch (message.Response.Status)
219using var document = JsonDocument.Parse(message.Response.ContentStream);
221return Response.FromValue(value, message.Response);
224throw _clientDiagnostics.CreateRequestFailedException(message.Response);
265switch (message.Response.Status)
269return message.Response;
271throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
293switch (message.Response.Status)
297return message.Response;
299throw _clientDiagnostics.CreateRequestFailedException(message.Response);
349switch (message.Response.Status)
354using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
356return Response.FromValue(value, message.Response);
359throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
386switch (message.Response.Status)
391using var document = JsonDocument.Parse(message.Response.ContentStream);
393return Response.FromValue(value, message.Response);
396throw _clientDiagnostics.CreateRequestFailedException(message.Response);
422switch (message.Response.Status)
427using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
429return Response.FromValue(value, message.Response);
432throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
442switch (message.Response.Status)
447using var document = JsonDocument.Parse(message.Response.ContentStream);
449return Response.FromValue(value, message.Response);
452throw _clientDiagnostics.CreateRequestFailedException(message.Response);
487switch (message.Response.Status)
492using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
494return Response.FromValue(value, message.Response);
497throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
514switch (message.Response.Status)
519using var document = JsonDocument.Parse(message.Response.ContentStream);
521return Response.FromValue(value, message.Response);
524throw _clientDiagnostics.CreateRequestFailedException(message.Response);
575switch (message.Response.Status)
579return message.Response;
581throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
608switch (message.Response.Status)
612return message.Response;
614throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ActivityLogAlertsRestOperations.cs (46)
92switch (message.Response.Status)
98using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
100return Response.FromValue(value, message.Response);
103throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
130switch (message.Response.Status)
136using var document = JsonDocument.Parse(message.Response.ContentStream);
138return Response.FromValue(value, message.Response);
141throw _clientDiagnostics.CreateRequestFailedException(message.Response);
182switch (message.Response.Status)
187using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
189return Response.FromValue(value, message.Response);
192throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
214switch (message.Response.Status)
219using var document = JsonDocument.Parse(message.Response.ContentStream);
221return Response.FromValue(value, message.Response);
224throw _clientDiagnostics.CreateRequestFailedException(message.Response);
265switch (message.Response.Status)
269return message.Response;
271throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
293switch (message.Response.Status)
297return message.Response;
299throw _clientDiagnostics.CreateRequestFailedException(message.Response);
349switch (message.Response.Status)
354using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
356return Response.FromValue(value, message.Response);
359throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
386switch (message.Response.Status)
391using var document = JsonDocument.Parse(message.Response.ContentStream);
393return Response.FromValue(value, message.Response);
396throw _clientDiagnostics.CreateRequestFailedException(message.Response);
422switch (message.Response.Status)
427using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
429return Response.FromValue(value, message.Response);
432throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
442switch (message.Response.Status)
447using var document = JsonDocument.Parse(message.Response.ContentStream);
449return Response.FromValue(value, message.Response);
452throw _clientDiagnostics.CreateRequestFailedException(message.Response);
487switch (message.Response.Status)
492using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
494return Response.FromValue(value, message.Response);
497throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
514switch (message.Response.Status)
519using var document = JsonDocument.Parse(message.Response.ContentStream);
521return Response.FromValue(value, message.Response);
524throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\AlertRulesRestOperations.cs (46)
92switch (message.Response.Status)
98using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
100return Response.FromValue(value, message.Response);
103throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
130switch (message.Response.Status)
136using var document = JsonDocument.Parse(message.Response.ContentStream);
138return Response.FromValue(value, message.Response);
141throw _clientDiagnostics.CreateRequestFailedException(message.Response);
181switch (message.Response.Status)
185return message.Response;
187throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
209switch (message.Response.Status)
213return message.Response;
215throw _clientDiagnostics.CreateRequestFailedException(message.Response);
256switch (message.Response.Status)
261using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
263return Response.FromValue(value, message.Response);
266throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
288switch (message.Response.Status)
293using var document = JsonDocument.Parse(message.Response.ContentStream);
295return Response.FromValue(value, message.Response);
298throw _clientDiagnostics.CreateRequestFailedException(message.Response);
348switch (message.Response.Status)
354using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
356return Response.FromValue(value, message.Response);
359throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
386switch (message.Response.Status)
392using var document = JsonDocument.Parse(message.Response.ContentStream);
394return Response.FromValue(value, message.Response);
397throw _clientDiagnostics.CreateRequestFailedException(message.Response);
432switch (message.Response.Status)
437using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
439return Response.FromValue(value, message.Response);
442throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
459switch (message.Response.Status)
464using var document = JsonDocument.Parse(message.Response.ContentStream);
466return Response.FromValue(value, message.Response);
469throw _clientDiagnostics.CreateRequestFailedException(message.Response);
495switch (message.Response.Status)
500using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
502return Response.FromValue(value, message.Response);
505throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
515switch (message.Response.Status)
520using var document = JsonDocument.Parse(message.Response.ContentStream);
522return Response.FromValue(value, message.Response);
525throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\AutoscaleSettingsRestOperations.cs (62)
77switch (message.Response.Status)
82using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
84return Response.FromValue(value, message.Response);
87throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
104switch (message.Response.Status)
109using var document = JsonDocument.Parse(message.Response.ContentStream);
111return Response.FromValue(value, message.Response);
114throw _clientDiagnostics.CreateRequestFailedException(message.Response);
164switch (message.Response.Status)
170using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
172return Response.FromValue(value, message.Response);
175throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
202switch (message.Response.Status)
208using var document = JsonDocument.Parse(message.Response.ContentStream);
210return Response.FromValue(value, message.Response);
213throw _clientDiagnostics.CreateRequestFailedException(message.Response);
254switch (message.Response.Status)
258return message.Response;
260throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
282switch (message.Response.Status)
286return message.Response;
288throw _clientDiagnostics.CreateRequestFailedException(message.Response);
329switch (message.Response.Status)
334using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
336return Response.FromValue(value, message.Response);
339throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
361switch (message.Response.Status)
366using var document = JsonDocument.Parse(message.Response.ContentStream);
368return Response.FromValue(value, message.Response);
371throw _clientDiagnostics.CreateRequestFailedException(message.Response);
421switch (message.Response.Status)
426using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
428return Response.FromValue(value, message.Response);
431throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
458switch (message.Response.Status)
463using var document = JsonDocument.Parse(message.Response.ContentStream);
465return Response.FromValue(value, message.Response);
468throw _clientDiagnostics.CreateRequestFailedException(message.Response);
494switch (message.Response.Status)
499using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
501return Response.FromValue(value, message.Response);
504throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
514switch (message.Response.Status)
519using var document = JsonDocument.Parse(message.Response.ContentStream);
521return Response.FromValue(value, message.Response);
524throw _clientDiagnostics.CreateRequestFailedException(message.Response);
559switch (message.Response.Status)
564using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
566return Response.FromValue(value, message.Response);
569throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
591switch (message.Response.Status)
596using var document = JsonDocument.Parse(message.Response.ContentStream);
598return Response.FromValue(value, message.Response);
601throw _clientDiagnostics.CreateRequestFailedException(message.Response);
631switch (message.Response.Status)
636using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
638return Response.FromValue(value, message.Response);
641throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
658switch (message.Response.Status)
663using var document = JsonDocument.Parse(message.Response.ContentStream);
665return Response.FromValue(value, message.Response);
668throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\DiagnosticSettingsRestOperations.cs (30)
73switch (message.Response.Status)
78using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
80return Response.FromValue(value, message.Response);
83throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
105switch (message.Response.Status)
110using var document = JsonDocument.Parse(message.Response.ContentStream);
112return Response.FromValue(value, message.Response);
115throw _clientDiagnostics.CreateRequestFailedException(message.Response);
163switch (message.Response.Status)
168using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
170return Response.FromValue(value, message.Response);
173throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
200switch (message.Response.Status)
205using var document = JsonDocument.Parse(message.Response.ContentStream);
207return Response.FromValue(value, message.Response);
210throw _clientDiagnostics.CreateRequestFailedException(message.Response);
249switch (message.Response.Status)
253return message.Response;
255throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
277switch (message.Response.Status)
281return message.Response;
283throw _clientDiagnostics.CreateRequestFailedException(message.Response);
316switch (message.Response.Status)
321using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
323return Response.FromValue(value, message.Response);
326throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
343switch (message.Response.Status)
348using var document = JsonDocument.Parse(message.Response.ContentStream);
350return Response.FromValue(value, message.Response);
353throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\LogProfilesRestOperations.cs (38)
75switch (message.Response.Status)
78return message.Response;
80throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
97switch (message.Response.Status)
100return message.Response;
102throw _clientDiagnostics.CreateRequestFailedException(message.Response);
136switch (message.Response.Status)
141using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
143return Response.FromValue(value, message.Response);
146throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
163switch (message.Response.Status)
168using var document = JsonDocument.Parse(message.Response.ContentStream);
170return Response.FromValue(value, message.Response);
173throw _clientDiagnostics.CreateRequestFailedException(message.Response);
216switch (message.Response.Status)
221using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
223return Response.FromValue(value, message.Response);
226throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
248switch (message.Response.Status)
253using var document = JsonDocument.Parse(message.Response.ContentStream);
255return Response.FromValue(value, message.Response);
258throw _clientDiagnostics.CreateRequestFailedException(message.Response);
301switch (message.Response.Status)
306using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
308return Response.FromValue(value, message.Response);
311throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
333switch (message.Response.Status)
338using var document = JsonDocument.Parse(message.Response.ContentStream);
340return Response.FromValue(value, message.Response);
343throw _clientDiagnostics.CreateRequestFailedException(message.Response);
369switch (message.Response.Status)
374using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
376return Response.FromValue(value, message.Response);
379throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
389switch (message.Response.Status)
394using var document = JsonDocument.Parse(message.Response.ContentStream);
396return Response.FromValue(value, message.Response);
399throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\MetricAlertsRestOperations.cs (46)
68switch (message.Response.Status)
73using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
75return Response.FromValue(value, message.Response);
78throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
88switch (message.Response.Status)
93using var document = JsonDocument.Parse(message.Response.ContentStream);
95return Response.FromValue(value, message.Response);
98throw _clientDiagnostics.CreateRequestFailedException(message.Response);
133switch (message.Response.Status)
138using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
140return Response.FromValue(value, message.Response);
143throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
160switch (message.Response.Status)
165using var document = JsonDocument.Parse(message.Response.ContentStream);
167return Response.FromValue(value, message.Response);
170throw _clientDiagnostics.CreateRequestFailedException(message.Response);
211switch (message.Response.Status)
216using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
218return Response.FromValue(value, message.Response);
221throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
243switch (message.Response.Status)
248using var document = JsonDocument.Parse(message.Response.ContentStream);
250return Response.FromValue(value, message.Response);
253throw _clientDiagnostics.CreateRequestFailedException(message.Response);
303switch (message.Response.Status)
308using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
310return Response.FromValue(value, message.Response);
313throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
340switch (message.Response.Status)
345using var document = JsonDocument.Parse(message.Response.ContentStream);
347return Response.FromValue(value, message.Response);
350throw _clientDiagnostics.CreateRequestFailedException(message.Response);
400switch (message.Response.Status)
405using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
407return Response.FromValue(value, message.Response);
410throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
437switch (message.Response.Status)
442using var document = JsonDocument.Parse(message.Response.ContentStream);
444return Response.FromValue(value, message.Response);
447throw _clientDiagnostics.CreateRequestFailedException(message.Response);
487switch (message.Response.Status)
491return message.Response;
493throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
515switch (message.Response.Status)
519return message.Response;
521throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ScheduledQueryRulesRestOperations.cs (46)
92switch (message.Response.Status)
98using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
100return Response.FromValue(value, message.Response);
103throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
130switch (message.Response.Status)
136using var document = JsonDocument.Parse(message.Response.ContentStream);
138return Response.FromValue(value, message.Response);
141throw _clientDiagnostics.CreateRequestFailedException(message.Response);
182switch (message.Response.Status)
187using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
189return Response.FromValue(value, message.Response);
192throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
214switch (message.Response.Status)
219using var document = JsonDocument.Parse(message.Response.ContentStream);
221return Response.FromValue(value, message.Response);
224throw _clientDiagnostics.CreateRequestFailedException(message.Response);
274switch (message.Response.Status)
279using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
281return Response.FromValue(value, message.Response);
284throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
311switch (message.Response.Status)
316using var document = JsonDocument.Parse(message.Response.ContentStream);
318return Response.FromValue(value, message.Response);
321throw _clientDiagnostics.CreateRequestFailedException(message.Response);
362switch (message.Response.Status)
366return message.Response;
368throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
390switch (message.Response.Status)
394return message.Response;
396throw _clientDiagnostics.CreateRequestFailedException(message.Response);
427switch (message.Response.Status)
432using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
434return Response.FromValue(value, message.Response);
437throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
448switch (message.Response.Status)
453using var document = JsonDocument.Parse(message.Response.ContentStream);
455return Response.FromValue(value, message.Response);
458throw _clientDiagnostics.CreateRequestFailedException(message.Response);
498switch (message.Response.Status)
503using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
505return Response.FromValue(value, message.Response);
508throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
526switch (message.Response.Status)
531using var document = JsonDocument.Parse(message.Response.ContentStream);
533return Response.FromValue(value, message.Response);
536throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Azure.ResourceManager.KeyVault (314)
Customized\VaultsRestOperationsExtension.cs (24)
64switch (message.Response.Status)
70using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
72return Response.FromValue(value, message.Response);
75throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
102switch (message.Response.Status)
108using var document = JsonDocument.Parse(message.Response.ContentStream);
110return Response.FromValue(value, message.Response);
113throw _clientDiagnostics.CreateRequestFailedException(message.Response);
140switch (message.Response.Status)
146using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
148return Response.FromValue(value, message.Response);
151throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
178switch (message.Response.Status)
184using var document = JsonDocument.Parse(message.Response.ContentStream);
186return Response.FromValue(value, message.Response);
189throw _clientDiagnostics.CreateRequestFailedException(message.Response);
216switch (message.Response.Status)
222using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
224return Response.FromValue(value, message.Response);
227throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
254switch (message.Response.Status)
260using var document = JsonDocument.Parse(message.Response.ContentStream);
262return Response.FromValue(value, message.Response);
265throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\DeletedVaultsRestOperations.cs (32)
70switch (message.Response.Status)
75using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
77return Response.FromValue(value, message.Response);
80throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
90switch (message.Response.Status)
95using var document = JsonDocument.Parse(message.Response.ContentStream);
97return Response.FromValue(value, message.Response);
100throw _clientDiagnostics.CreateRequestFailedException(message.Response);
142switch (message.Response.Status)
147using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
149return Response.FromValue(value, message.Response);
152return Response.FromValue((DeletedVaultData)null, message.Response);
154throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
176switch (message.Response.Status)
181using var document = JsonDocument.Parse(message.Response.ContentStream);
183return Response.FromValue(value, message.Response);
186return Response.FromValue((DeletedVaultData)null, message.Response);
188throw _clientDiagnostics.CreateRequestFailedException(message.Response);
231switch (message.Response.Status)
235return message.Response;
237throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
259switch (message.Response.Status)
263return message.Response;
265throw _clientDiagnostics.CreateRequestFailedException(message.Response);
296switch (message.Response.Status)
301using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
303return Response.FromValue(value, message.Response);
306throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
323switch (message.Response.Status)
328using var document = JsonDocument.Parse(message.Response.ContentStream);
330return Response.FromValue(value, message.Response);
333throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ManagedHsmsRestOperations.cs (90)
94switch (message.Response.Status)
98return message.Response;
100throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
127switch (message.Response.Status)
131return message.Response;
133throw _clientDiagnostics.CreateRequestFailedException(message.Response);
184switch (message.Response.Status)
188return message.Response;
190throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
217switch (message.Response.Status)
221return message.Response;
223throw _clientDiagnostics.CreateRequestFailedException(message.Response);
265switch (message.Response.Status)
270return message.Response;
272throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
294switch (message.Response.Status)
299return message.Response;
301throw _clientDiagnostics.CreateRequestFailedException(message.Response);
343switch (message.Response.Status)
348using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
350return Response.FromValue(value, message.Response);
355return Response.FromValue((ManagedHsmData)null, message.Response);
357throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
379switch (message.Response.Status)
384using var document = JsonDocument.Parse(message.Response.ContentStream);
386return Response.FromValue(value, message.Response);
391return Response.FromValue((ManagedHsmData)null, message.Response);
393throw _clientDiagnostics.CreateRequestFailedException(message.Response);
434switch (message.Response.Status)
439using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
441return Response.FromValue(value, message.Response);
444throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
462switch (message.Response.Status)
467using var document = JsonDocument.Parse(message.Response.ContentStream);
469return Response.FromValue(value, message.Response);
472throw _clientDiagnostics.CreateRequestFailedException(message.Response);
504switch (message.Response.Status)
509using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
511return Response.FromValue(value, message.Response);
514throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
525switch (message.Response.Status)
530using var document = JsonDocument.Parse(message.Response.ContentStream);
532return Response.FromValue(value, message.Response);
535throw _clientDiagnostics.CreateRequestFailedException(message.Response);
562switch (message.Response.Status)
567using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
569return Response.FromValue(value, message.Response);
572throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
582switch (message.Response.Status)
587using var document = JsonDocument.Parse(message.Response.ContentStream);
589return Response.FromValue(value, message.Response);
592throw _clientDiagnostics.CreateRequestFailedException(message.Response);
634switch (message.Response.Status)
639using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
641return Response.FromValue(value, message.Response);
644throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
666switch (message.Response.Status)
671using var document = JsonDocument.Parse(message.Response.ContentStream);
673return Response.FromValue(value, message.Response);
676throw _clientDiagnostics.CreateRequestFailedException(message.Response);
719switch (message.Response.Status)
722return message.Response;
724throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
746switch (message.Response.Status)
749return message.Response;
751throw _clientDiagnostics.CreateRequestFailedException(message.Response);
788switch (message.Response.Status)
793using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
795return Response.FromValue(value, message.Response);
798throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
821switch (message.Response.Status)
826using var document = JsonDocument.Parse(message.Response.ContentStream);
828return Response.FromValue(value, message.Response);
831throw _clientDiagnostics.CreateRequestFailedException(message.Response);
863switch (message.Response.Status)
868using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
870return Response.FromValue(value, message.Response);
873throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
891switch (message.Response.Status)
896using var document = JsonDocument.Parse(message.Response.ContentStream);
898return Response.FromValue(value, message.Response);
901throw _clientDiagnostics.CreateRequestFailedException(message.Response);
932switch (message.Response.Status)
937using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
939return Response.FromValue(value, message.Response);
942throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
959switch (message.Response.Status)
964using var document = JsonDocument.Parse(message.Response.ContentStream);
966return Response.FromValue(value, message.Response);
969throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\MhsmPrivateEndpointConnectionsRestOperations.cs (40)
86switch (message.Response.Status)
91using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
93return Response.FromValue(value, message.Response);
96throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
118switch (message.Response.Status)
123using var document = JsonDocument.Parse(message.Response.ContentStream);
125return Response.FromValue(value, message.Response);
128throw _clientDiagnostics.CreateRequestFailedException(message.Response);
177switch (message.Response.Status)
182using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
184return Response.FromValue(value, message.Response);
187return Response.FromValue((MhsmPrivateEndpointConnectionData)null, message.Response);
189throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
216switch (message.Response.Status)
221using var document = JsonDocument.Parse(message.Response.ContentStream);
223return Response.FromValue(value, message.Response);
226return Response.FromValue((MhsmPrivateEndpointConnectionData)null, message.Response);
228throw _clientDiagnostics.CreateRequestFailedException(message.Response);
286switch (message.Response.Status)
291using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
293return Response.FromValue(value, message.Response);
296throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
328switch (message.Response.Status)
333using var document = JsonDocument.Parse(message.Response.ContentStream);
335return Response.FromValue(value, message.Response);
338throw _clientDiagnostics.CreateRequestFailedException(message.Response);
387switch (message.Response.Status)
392return message.Response;
394throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
421switch (message.Response.Status)
426return message.Response;
428throw _clientDiagnostics.CreateRequestFailedException(message.Response);
469switch (message.Response.Status)
474using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
476return Response.FromValue(value, message.Response);
479throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
506switch (message.Response.Status)
511using var document = JsonDocument.Parse(message.Response.ContentStream);
513return Response.FromValue(value, message.Response);
516throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\PrivateEndpointConnectionsRestOperations.cs (40)
92switch (message.Response.Status)
97using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
99return Response.FromValue(value, message.Response);
103return Response.FromValue((PrivateEndpointConnectionData)null, message.Response);
105throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
132switch (message.Response.Status)
137using var document = JsonDocument.Parse(message.Response.ContentStream);
139return Response.FromValue(value, message.Response);
143return Response.FromValue((PrivateEndpointConnectionData)null, message.Response);
145throw _clientDiagnostics.CreateRequestFailedException(message.Response);
203switch (message.Response.Status)
208using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
210return Response.FromValue(value, message.Response);
213throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
245switch (message.Response.Status)
250using var document = JsonDocument.Parse(message.Response.ContentStream);
252return Response.FromValue(value, message.Response);
255throw _clientDiagnostics.CreateRequestFailedException(message.Response);
304switch (message.Response.Status)
309return message.Response;
311throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
338switch (message.Response.Status)
343return message.Response;
345throw _clientDiagnostics.CreateRequestFailedException(message.Response);
388switch (message.Response.Status)
393using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
395return Response.FromValue(value, message.Response);
398throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
420switch (message.Response.Status)
425using var document = JsonDocument.Parse(message.Response.ContentStream);
427return Response.FromValue(value, message.Response);
430throw _clientDiagnostics.CreateRequestFailedException(message.Response);
471switch (message.Response.Status)
476using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
478return Response.FromValue(value, message.Response);
481throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
508switch (message.Response.Status)
513using var document = JsonDocument.Parse(message.Response.ContentStream);
515return Response.FromValue(value, message.Response);
518throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VaultsRestOperations.cs (70)
95switch (message.Response.Status)
99return message.Response;
101throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
128switch (message.Response.Status)
132return message.Response;
134throw _clientDiagnostics.CreateRequestFailedException(message.Response);
194switch (message.Response.Status)
200using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
202return Response.FromValue(value, message.Response);
205throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
229switch (message.Response.Status)
235using var document = JsonDocument.Parse(message.Response.ContentStream);
237return Response.FromValue(value, message.Response);
240throw _clientDiagnostics.CreateRequestFailedException(message.Response);
282switch (message.Response.Status)
286return message.Response;
288throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
310switch (message.Response.Status)
314return message.Response;
316throw _clientDiagnostics.CreateRequestFailedException(message.Response);
358switch (message.Response.Status)
363using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
365return Response.FromValue(value, message.Response);
368return Response.FromValue((VaultData)null, message.Response);
370throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
392switch (message.Response.Status)
397using var document = JsonDocument.Parse(message.Response.ContentStream);
399return Response.FromValue(value, message.Response);
402return Response.FromValue((VaultData)null, message.Response);
404throw _clientDiagnostics.CreateRequestFailedException(message.Response);
445switch (message.Response.Status)
450using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
452return Response.FromValue(value, message.Response);
455throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
473switch (message.Response.Status)
478using var document = JsonDocument.Parse(message.Response.ContentStream);
480return Response.FromValue(value, message.Response);
483throw _clientDiagnostics.CreateRequestFailedException(message.Response);
515switch (message.Response.Status)
520using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
522return Response.FromValue(value, message.Response);
525throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
536switch (message.Response.Status)
541using var document = JsonDocument.Parse(message.Response.ContentStream);
543return Response.FromValue(value, message.Response);
546throw _clientDiagnostics.CreateRequestFailedException(message.Response);
585switch (message.Response.Status)
590using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
592return Response.FromValue(value, message.Response);
595throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
612switch (message.Response.Status)
617using var document = JsonDocument.Parse(message.Response.ContentStream);
619return Response.FromValue(value, message.Response);
622throw _clientDiagnostics.CreateRequestFailedException(message.Response);
659switch (message.Response.Status)
664using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
666return Response.FromValue(value, message.Response);
669throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
692switch (message.Response.Status)
697using var document = JsonDocument.Parse(message.Response.ContentStream);
699return Response.FromValue(value, message.Response);
702throw _clientDiagnostics.CreateRequestFailedException(message.Response);
734switch (message.Response.Status)
739using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
741return Response.FromValue(value, message.Response);
744throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
762switch (message.Response.Status)
767using var document = JsonDocument.Parse(message.Response.ContentStream);
769return Response.FromValue(value, message.Response);
772throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Azure.ResourceManager.KeyVault.Tests (546)
Rbac\Generated\ApplicationsRestOperations.cs (116)
86switch (message.Response.Status)
91using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
93return Response.FromValue(value, message.Response);
96throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
113switch (message.Response.Status)
118using var document = JsonDocument.Parse(message.Response.ContentStream);
120return Response.FromValue(value, message.Response);
123throw _clientDiagnostics.CreateRequestFailedException(message.Response);
154switch (message.Response.Status)
159using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
161return Response.FromValue(value, message.Response);
164throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
175switch (message.Response.Status)
180using var document = JsonDocument.Parse(message.Response.ContentStream);
182return Response.FromValue(value, message.Response);
185throw _clientDiagnostics.CreateRequestFailedException(message.Response);
219switch (message.Response.Status)
222return message.Response;
224throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
241switch (message.Response.Status)
244return message.Response;
246throw _clientDiagnostics.CreateRequestFailedException(message.Response);
280switch (message.Response.Status)
285using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
287return Response.FromValue(value, message.Response);
290throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
307switch (message.Response.Status)
312using var document = JsonDocument.Parse(message.Response.ContentStream);
314return Response.FromValue(value, message.Response);
317throw _clientDiagnostics.CreateRequestFailedException(message.Response);
360switch (message.Response.Status)
363return message.Response;
365throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
387switch (message.Response.Status)
390return message.Response;
392throw _clientDiagnostics.CreateRequestFailedException(message.Response);
427switch (message.Response.Status)
432using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
434return Response.FromValue(value, message.Response);
437throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
454switch (message.Response.Status)
459using var document = JsonDocument.Parse(message.Response.ContentStream);
461return Response.FromValue(value, message.Response);
464throw _clientDiagnostics.CreateRequestFailedException(message.Response);
508switch (message.Response.Status)
511return message.Response;
513throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
535switch (message.Response.Status)
538return message.Response;
540throw _clientDiagnostics.CreateRequestFailedException(message.Response);
581switch (message.Response.Status)
584return message.Response;
586throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
608switch (message.Response.Status)
611return message.Response;
613throw _clientDiagnostics.CreateRequestFailedException(message.Response);
648switch (message.Response.Status)
653using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
655return Response.FromValue(value, message.Response);
658throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
675switch (message.Response.Status)
680using var document = JsonDocument.Parse(message.Response.ContentStream);
682return Response.FromValue(value, message.Response);
685throw _clientDiagnostics.CreateRequestFailedException(message.Response);
729switch (message.Response.Status)
732return message.Response;
734throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
756switch (message.Response.Status)
759return message.Response;
761throw _clientDiagnostics.CreateRequestFailedException(message.Response);
796switch (message.Response.Status)
801using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
803return Response.FromValue(value, message.Response);
806throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
823switch (message.Response.Status)
828using var document = JsonDocument.Parse(message.Response.ContentStream);
830return Response.FromValue(value, message.Response);
833throw _clientDiagnostics.CreateRequestFailedException(message.Response);
877switch (message.Response.Status)
880return message.Response;
882throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
904switch (message.Response.Status)
907return message.Response;
909throw _clientDiagnostics.CreateRequestFailedException(message.Response);
944switch (message.Response.Status)
949using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
951return Response.FromValue(value, message.Response);
954throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
971switch (message.Response.Status)
976using var document = JsonDocument.Parse(message.Response.ContentStream);
978return Response.FromValue(value, message.Response);
981throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1015switch (message.Response.Status)
1020using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1022return Response.FromValue(value, message.Response);
1025throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1042switch (message.Response.Status)
1047using var document = JsonDocument.Parse(message.Response.ContentStream);
1049return Response.FromValue(value, message.Response);
1052throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1087switch (message.Response.Status)
1092using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1094return Response.FromValue(value, message.Response);
1097throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1119switch (message.Response.Status)
1124using var document = JsonDocument.Parse(message.Response.ContentStream);
1126return Response.FromValue(value, message.Response);
1129throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1159switch (message.Response.Status)
1164using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1166return Response.FromValue(value, message.Response);
1169throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1186switch (message.Response.Status)
1191using var document = JsonDocument.Parse(message.Response.ContentStream);
1193return Response.FromValue(value, message.Response);
1196throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Rbac\Generated\DeletedApplicationsRestOperations.cs (38)
84switch (message.Response.Status)
89using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
91return Response.FromValue(value, message.Response);
94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
111switch (message.Response.Status)
116using var document = JsonDocument.Parse(message.Response.ContentStream);
118return Response.FromValue(value, message.Response);
121throw _clientDiagnostics.CreateRequestFailedException(message.Response);
152switch (message.Response.Status)
157using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
159return Response.FromValue(value, message.Response);
162throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
173switch (message.Response.Status)
178using var document = JsonDocument.Parse(message.Response.ContentStream);
180return Response.FromValue(value, message.Response);
183throw _clientDiagnostics.CreateRequestFailedException(message.Response);
217switch (message.Response.Status)
220return message.Response;
222throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
239switch (message.Response.Status)
242return message.Response;
244throw _clientDiagnostics.CreateRequestFailedException(message.Response);
278switch (message.Response.Status)
283using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
285return Response.FromValue(value, message.Response);
288throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
305switch (message.Response.Status)
310using var document = JsonDocument.Parse(message.Response.ContentStream);
312return Response.FromValue(value, message.Response);
315throw _clientDiagnostics.CreateRequestFailedException(message.Response);
345switch (message.Response.Status)
350using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
352return Response.FromValue(value, message.Response);
355throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
372switch (message.Response.Status)
377using var document = JsonDocument.Parse(message.Response.ContentStream);
379return Response.FromValue(value, message.Response);
382throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Rbac\Generated\GroupsRestOperations.cs (126)
86switch (message.Response.Status)
91using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
93return Response.FromValue(value, message.Response);
96throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
113switch (message.Response.Status)
118using var document = JsonDocument.Parse(message.Response.ContentStream);
120return Response.FromValue(value, message.Response);
123throw _clientDiagnostics.CreateRequestFailedException(message.Response);
164switch (message.Response.Status)
167return message.Response;
169throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
191switch (message.Response.Status)
194return message.Response;
196throw _clientDiagnostics.CreateRequestFailedException(message.Response);
240switch (message.Response.Status)
243return message.Response;
245throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
267switch (message.Response.Status)
270return message.Response;
272throw _clientDiagnostics.CreateRequestFailedException(message.Response);
309switch (message.Response.Status)
314using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
316return Response.FromValue(value, message.Response);
319throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
336switch (message.Response.Status)
341using var document = JsonDocument.Parse(message.Response.ContentStream);
343return Response.FromValue(value, message.Response);
346throw _clientDiagnostics.CreateRequestFailedException(message.Response);
377switch (message.Response.Status)
382using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
384return Response.FromValue(value, message.Response);
387throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
398switch (message.Response.Status)
403using var document = JsonDocument.Parse(message.Response.ContentStream);
405return Response.FromValue(value, message.Response);
408throw _clientDiagnostics.CreateRequestFailedException(message.Response);
443switch (message.Response.Status)
448using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
450return Response.FromValue(value, message.Response);
453throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
470switch (message.Response.Status)
475using var document = JsonDocument.Parse(message.Response.ContentStream);
477return Response.FromValue(value, message.Response);
480throw _clientDiagnostics.CreateRequestFailedException(message.Response);
514switch (message.Response.Status)
519using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
521return Response.FromValue(value, message.Response);
524throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
541switch (message.Response.Status)
546using var document = JsonDocument.Parse(message.Response.ContentStream);
548return Response.FromValue(value, message.Response);
551throw _clientDiagnostics.CreateRequestFailedException(message.Response);
585switch (message.Response.Status)
588return message.Response;
590throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
607switch (message.Response.Status)
610return message.Response;
612throw _clientDiagnostics.CreateRequestFailedException(message.Response);
656switch (message.Response.Status)
661using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
663return Response.FromValue(value, message.Response);
666throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
688switch (message.Response.Status)
693using var document = JsonDocument.Parse(message.Response.ContentStream);
695return Response.FromValue(value, message.Response);
698throw _clientDiagnostics.CreateRequestFailedException(message.Response);
733switch (message.Response.Status)
738using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
740return Response.FromValue(value, message.Response);
743throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
760switch (message.Response.Status)
765using var document = JsonDocument.Parse(message.Response.ContentStream);
767return Response.FromValue(value, message.Response);
770throw _clientDiagnostics.CreateRequestFailedException(message.Response);
814switch (message.Response.Status)
817return message.Response;
819throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
841switch (message.Response.Status)
844return message.Response;
846throw _clientDiagnostics.CreateRequestFailedException(message.Response);
887switch (message.Response.Status)
890return message.Response;
892throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
914switch (message.Response.Status)
917return message.Response;
919throw _clientDiagnostics.CreateRequestFailedException(message.Response);
953switch (message.Response.Status)
958using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
960return Response.FromValue(value, message.Response);
963throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
980switch (message.Response.Status)
985using var document = JsonDocument.Parse(message.Response.ContentStream);
987return Response.FromValue(value, message.Response);
990throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1024switch (message.Response.Status)
1029using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1031return Response.FromValue(value, message.Response);
1034throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1051switch (message.Response.Status)
1056using var document = JsonDocument.Parse(message.Response.ContentStream);
1058return Response.FromValue(value, message.Response);
1061throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1096switch (message.Response.Status)
1101using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1103return Response.FromValue(value, message.Response);
1106throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1128switch (message.Response.Status)
1133using var document = JsonDocument.Parse(message.Response.ContentStream);
1135return Response.FromValue(value, message.Response);
1138throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1168switch (message.Response.Status)
1173using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1175return Response.FromValue(value, message.Response);
1178throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1195switch (message.Response.Status)
1200using var document = JsonDocument.Parse(message.Response.ContentStream);
1202return Response.FromValue(value, message.Response);
1205throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1235switch (message.Response.Status)
1240using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1242return Response.FromValue(value, message.Response);
1245throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1262switch (message.Response.Status)
1267using var document = JsonDocument.Parse(message.Response.ContentStream);
1269return Response.FromValue(value, message.Response);
1272throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Rbac\Generated\OAuth2PermissionGrantRestOperations.cs (38)
80switch (message.Response.Status)
85using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
87return Response.FromValue(value, message.Response);
90throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
101switch (message.Response.Status)
106using var document = JsonDocument.Parse(message.Response.ContentStream);
108return Response.FromValue(value, message.Response);
111throw _clientDiagnostics.CreateRequestFailedException(message.Response);
145switch (message.Response.Status)
150using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
152return Response.FromValue(value, message.Response);
155throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
166switch (message.Response.Status)
171using var document = JsonDocument.Parse(message.Response.ContentStream);
173return Response.FromValue(value, message.Response);
176throw _clientDiagnostics.CreateRequestFailedException(message.Response);
210switch (message.Response.Status)
213return message.Response;
215throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
232switch (message.Response.Status)
235return message.Response;
237throw _clientDiagnostics.CreateRequestFailedException(message.Response);
271switch (message.Response.Status)
276using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
278return Response.FromValue(value, message.Response);
281throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
298switch (message.Response.Status)
303using var document = JsonDocument.Parse(message.Response.ContentStream);
305return Response.FromValue(value, message.Response);
308throw _clientDiagnostics.CreateRequestFailedException(message.Response);
338switch (message.Response.Status)
343using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
345return Response.FromValue(value, message.Response);
348throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
365switch (message.Response.Status)
370using var document = JsonDocument.Parse(message.Response.ContentStream);
372return Response.FromValue(value, message.Response);
375throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Rbac\Generated\ObjectsRestOperations.cs (24)
86switch (message.Response.Status)
91using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
93return Response.FromValue(value, message.Response);
96throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
113switch (message.Response.Status)
118using var document = JsonDocument.Parse(message.Response.ContentStream);
120return Response.FromValue(value, message.Response);
123throw _clientDiagnostics.CreateRequestFailedException(message.Response);
157switch (message.Response.Status)
162using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
164return Response.FromValue(value, message.Response);
167throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
184switch (message.Response.Status)
189using var document = JsonDocument.Parse(message.Response.ContentStream);
191return Response.FromValue(value, message.Response);
194throw _clientDiagnostics.CreateRequestFailedException(message.Response);
224switch (message.Response.Status)
229using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
231return Response.FromValue(value, message.Response);
234throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
251switch (message.Response.Status)
256using var document = JsonDocument.Parse(message.Response.ContentStream);
258return Response.FromValue(value, message.Response);
261throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Rbac\Generated\ServicePrincipalsRestOperations.cs (96)
86switch (message.Response.Status)
91using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
93return Response.FromValue(value, message.Response);
96throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
113switch (message.Response.Status)
118using var document = JsonDocument.Parse(message.Response.ContentStream);
120return Response.FromValue(value, message.Response);
123throw _clientDiagnostics.CreateRequestFailedException(message.Response);
154switch (message.Response.Status)
159using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
161return Response.FromValue(value, message.Response);
164throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
175switch (message.Response.Status)
180using var document = JsonDocument.Parse(message.Response.ContentStream);
182return Response.FromValue(value, message.Response);
185throw _clientDiagnostics.CreateRequestFailedException(message.Response);
228switch (message.Response.Status)
231return message.Response;
233throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
255switch (message.Response.Status)
258return message.Response;
260throw _clientDiagnostics.CreateRequestFailedException(message.Response);
294switch (message.Response.Status)
297return message.Response;
299throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
316switch (message.Response.Status)
319return message.Response;
321throw _clientDiagnostics.CreateRequestFailedException(message.Response);
355switch (message.Response.Status)
360using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
362return Response.FromValue(value, message.Response);
365throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
382switch (message.Response.Status)
387using var document = JsonDocument.Parse(message.Response.ContentStream);
389return Response.FromValue(value, message.Response);
392throw _clientDiagnostics.CreateRequestFailedException(message.Response);
427switch (message.Response.Status)
432using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
434return Response.FromValue(value, message.Response);
437throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
454switch (message.Response.Status)
459using var document = JsonDocument.Parse(message.Response.ContentStream);
461return Response.FromValue(value, message.Response);
464throw _clientDiagnostics.CreateRequestFailedException(message.Response);
499switch (message.Response.Status)
504using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
506return Response.FromValue(value, message.Response);
509throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
526switch (message.Response.Status)
531using var document = JsonDocument.Parse(message.Response.ContentStream);
533return Response.FromValue(value, message.Response);
536throw _clientDiagnostics.CreateRequestFailedException(message.Response);
580switch (message.Response.Status)
583return message.Response;
585throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
607switch (message.Response.Status)
610return message.Response;
612throw _clientDiagnostics.CreateRequestFailedException(message.Response);
647switch (message.Response.Status)
652using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
654return Response.FromValue(value, message.Response);
657throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
674switch (message.Response.Status)
679using var document = JsonDocument.Parse(message.Response.ContentStream);
681return Response.FromValue(value, message.Response);
684throw _clientDiagnostics.CreateRequestFailedException(message.Response);
728switch (message.Response.Status)
731return message.Response;
733throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
755switch (message.Response.Status)
758return message.Response;
760throw _clientDiagnostics.CreateRequestFailedException(message.Response);
794switch (message.Response.Status)
799using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
801return Response.FromValue(value, message.Response);
804throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
821switch (message.Response.Status)
826using var document = JsonDocument.Parse(message.Response.ContentStream);
828return Response.FromValue(value, message.Response);
831throw _clientDiagnostics.CreateRequestFailedException(message.Response);
866switch (message.Response.Status)
871using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
873return Response.FromValue(value, message.Response);
876throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
898switch (message.Response.Status)
903using var document = JsonDocument.Parse(message.Response.ContentStream);
905return Response.FromValue(value, message.Response);
908throw _clientDiagnostics.CreateRequestFailedException(message.Response);
938switch (message.Response.Status)
943using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
945return Response.FromValue(value, message.Response);
948throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
965switch (message.Response.Status)
970using var document = JsonDocument.Parse(message.Response.ContentStream);
972return Response.FromValue(value, message.Response);
975throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Rbac\Generated\SignedInUserRestOperations.cs (32)
75switch (message.Response.Status)
80using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
82return Response.FromValue(value, message.Response);
85throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
95switch (message.Response.Status)
100using var document = JsonDocument.Parse(message.Response.ContentStream);
102return Response.FromValue(value, message.Response);
105throw _clientDiagnostics.CreateRequestFailedException(message.Response);
131switch (message.Response.Status)
136using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
138return Response.FromValue(value, message.Response);
141throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
151switch (message.Response.Status)
156using var document = JsonDocument.Parse(message.Response.ContentStream);
158return Response.FromValue(value, message.Response);
161throw _clientDiagnostics.CreateRequestFailedException(message.Response);
195switch (message.Response.Status)
200using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
202return Response.FromValue(value, message.Response);
205throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
222switch (message.Response.Status)
227using var document = JsonDocument.Parse(message.Response.ContentStream);
229return Response.FromValue(value, message.Response);
232throw _clientDiagnostics.CreateRequestFailedException(message.Response);
262switch (message.Response.Status)
267using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
269return Response.FromValue(value, message.Response);
272throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
289switch (message.Response.Status)
294using var document = JsonDocument.Parse(message.Response.ContentStream);
296return Response.FromValue(value, message.Response);
299throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Rbac\Generated\UsersRestOperations.cs (60)
86switch (message.Response.Status)
91using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
93return Response.FromValue(value, message.Response);
96throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
113switch (message.Response.Status)
118using var document = JsonDocument.Parse(message.Response.ContentStream);
120return Response.FromValue(value, message.Response);
123throw _clientDiagnostics.CreateRequestFailedException(message.Response);
154switch (message.Response.Status)
159using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
161return Response.FromValue(value, message.Response);
164throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
175switch (message.Response.Status)
180using var document = JsonDocument.Parse(message.Response.ContentStream);
182return Response.FromValue(value, message.Response);
185throw _clientDiagnostics.CreateRequestFailedException(message.Response);
219switch (message.Response.Status)
224using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
226return Response.FromValue(value, message.Response);
229throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
246switch (message.Response.Status)
251using var document = JsonDocument.Parse(message.Response.ContentStream);
253return Response.FromValue(value, message.Response);
256throw _clientDiagnostics.CreateRequestFailedException(message.Response);
299switch (message.Response.Status)
302return message.Response;
304throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
326switch (message.Response.Status)
329return message.Response;
331throw _clientDiagnostics.CreateRequestFailedException(message.Response);
365switch (message.Response.Status)
368return message.Response;
370throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
387switch (message.Response.Status)
390return message.Response;
392throw _clientDiagnostics.CreateRequestFailedException(message.Response);
436switch (message.Response.Status)
441using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
443return Response.FromValue(value, message.Response);
446throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
468switch (message.Response.Status)
473using var document = JsonDocument.Parse(message.Response.ContentStream);
475return Response.FromValue(value, message.Response);
478throw _clientDiagnostics.CreateRequestFailedException(message.Response);
512switch (message.Response.Status)
517using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
519return Response.FromValue(value, message.Response);
522throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
539switch (message.Response.Status)
544using var document = JsonDocument.Parse(message.Response.ContentStream);
546return Response.FromValue(value, message.Response);
549throw _clientDiagnostics.CreateRequestFailedException(message.Response);
579switch (message.Response.Status)
584using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
586return Response.FromValue(value, message.Response);
589throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
606switch (message.Response.Status)
611using var document = JsonDocument.Parse(message.Response.ContentStream);
613return Response.FromValue(value, message.Response);
616throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Azure.ResourceManager.MachineLearningServices (850)
Generated\CodeContainersRestOperations.cs (38)
105switch (message.Response.Status)
111using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
113return Response.FromValue(value, message.Response);
116throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
144switch (message.Response.Status)
150using var document = JsonDocument.Parse(message.Response.ContentStream);
152return Response.FromValue(value, message.Response);
155throw _clientDiagnostics.CreateRequestFailedException(message.Response);
203switch (message.Response.Status)
208using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
210return Response.FromValue(value, message.Response);
213throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
240switch (message.Response.Status)
245using var document = JsonDocument.Parse(message.Response.ContentStream);
247return Response.FromValue(value, message.Response);
250throw _clientDiagnostics.CreateRequestFailedException(message.Response);
298switch (message.Response.Status)
302return message.Response;
304throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
331switch (message.Response.Status)
335return message.Response;
337throw _clientDiagnostics.CreateRequestFailedException(message.Response);
384switch (message.Response.Status)
389using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
391return Response.FromValue(value, message.Response);
394throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
417switch (message.Response.Status)
422using var document = JsonDocument.Parse(message.Response.ContentStream);
424return Response.FromValue(value, message.Response);
427throw _clientDiagnostics.CreateRequestFailedException(message.Response);
468switch (message.Response.Status)
473using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
475return Response.FromValue(value, message.Response);
478throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
506switch (message.Response.Status)
511using var document = JsonDocument.Parse(message.Response.ContentStream);
513return Response.FromValue(value, message.Response);
516throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\CodeVersionsRestOperations.cs (38)
112switch (message.Response.Status)
118using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
120return Response.FromValue(value, message.Response);
123throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
156switch (message.Response.Status)
162using var document = JsonDocument.Parse(message.Response.ContentStream);
164return Response.FromValue(value, message.Response);
167throw _clientDiagnostics.CreateRequestFailedException(message.Response);
222switch (message.Response.Status)
227using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
229return Response.FromValue(value, message.Response);
232throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
264switch (message.Response.Status)
269using var document = JsonDocument.Parse(message.Response.ContentStream);
271return Response.FromValue(value, message.Response);
274throw _clientDiagnostics.CreateRequestFailedException(message.Response);
329switch (message.Response.Status)
333return message.Response;
335throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
367switch (message.Response.Status)
371return message.Response;
373throw _clientDiagnostics.CreateRequestFailedException(message.Response);
427switch (message.Response.Status)
432using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
434return Response.FromValue(value, message.Response);
437throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
465switch (message.Response.Status)
470using var document = JsonDocument.Parse(message.Response.ContentStream);
472return Response.FromValue(value, message.Response);
475throw _clientDiagnostics.CreateRequestFailedException(message.Response);
521switch (message.Response.Status)
526using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
528return Response.FromValue(value, message.Response);
531throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
564switch (message.Response.Status)
569using var document = JsonDocument.Parse(message.Response.ContentStream);
571return Response.FromValue(value, message.Response);
574throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\DataContainersRestOperations.cs (38)
105switch (message.Response.Status)
111using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
113return Response.FromValue(value, message.Response);
116throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
144switch (message.Response.Status)
150using var document = JsonDocument.Parse(message.Response.ContentStream);
152return Response.FromValue(value, message.Response);
155throw _clientDiagnostics.CreateRequestFailedException(message.Response);
203switch (message.Response.Status)
208using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
210return Response.FromValue(value, message.Response);
213throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
240switch (message.Response.Status)
245using var document = JsonDocument.Parse(message.Response.ContentStream);
247return Response.FromValue(value, message.Response);
250throw _clientDiagnostics.CreateRequestFailedException(message.Response);
298switch (message.Response.Status)
302return message.Response;
304throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
331switch (message.Response.Status)
335return message.Response;
337throw _clientDiagnostics.CreateRequestFailedException(message.Response);
384switch (message.Response.Status)
389using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
391return Response.FromValue(value, message.Response);
394throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
417switch (message.Response.Status)
422using var document = JsonDocument.Parse(message.Response.ContentStream);
424return Response.FromValue(value, message.Response);
427throw _clientDiagnostics.CreateRequestFailedException(message.Response);
468switch (message.Response.Status)
473using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
475return Response.FromValue(value, message.Response);
478throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
506switch (message.Response.Status)
511using var document = JsonDocument.Parse(message.Response.ContentStream);
513return Response.FromValue(value, message.Response);
516throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\DatastoresRestOperations.cs (46)
127switch (message.Response.Status)
132using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
134return Response.FromValue(value, message.Response);
137throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
166switch (message.Response.Status)
171using var document = JsonDocument.Parse(message.Response.ContentStream);
173return Response.FromValue(value, message.Response);
176throw _clientDiagnostics.CreateRequestFailedException(message.Response);
224switch (message.Response.Status)
228return message.Response;
230throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
257switch (message.Response.Status)
261return message.Response;
263throw _clientDiagnostics.CreateRequestFailedException(message.Response);
311switch (message.Response.Status)
316using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
318return Response.FromValue(value, message.Response);
321throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
348switch (message.Response.Status)
353using var document = JsonDocument.Parse(message.Response.ContentStream);
355return Response.FromValue(value, message.Response);
358throw _clientDiagnostics.CreateRequestFailedException(message.Response);
415switch (message.Response.Status)
421using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
423return Response.FromValue(value, message.Response);
426throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
458switch (message.Response.Status)
464using var document = JsonDocument.Parse(message.Response.ContentStream);
466return Response.FromValue(value, message.Response);
469throw _clientDiagnostics.CreateRequestFailedException(message.Response);
518switch (message.Response.Status)
523using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
525return Response.FromValue(value, message.Response);
528throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
555switch (message.Response.Status)
560using var document = JsonDocument.Parse(message.Response.ContentStream);
562return Response.FromValue(value, message.Response);
565throw _clientDiagnostics.CreateRequestFailedException(message.Response);
612switch (message.Response.Status)
617using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
619return Response.FromValue(value, message.Response);
622throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
656switch (message.Response.Status)
661using var document = JsonDocument.Parse(message.Response.ContentStream);
663return Response.FromValue(value, message.Response);
666throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\DataVersionsRestOperations.cs (38)
112switch (message.Response.Status)
118using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
120return Response.FromValue(value, message.Response);
123throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
156switch (message.Response.Status)
162using var document = JsonDocument.Parse(message.Response.ContentStream);
164return Response.FromValue(value, message.Response);
167throw _clientDiagnostics.CreateRequestFailedException(message.Response);
222switch (message.Response.Status)
227using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
229return Response.FromValue(value, message.Response);
232throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
264switch (message.Response.Status)
269using var document = JsonDocument.Parse(message.Response.ContentStream);
271return Response.FromValue(value, message.Response);
274throw _clientDiagnostics.CreateRequestFailedException(message.Response);
329switch (message.Response.Status)
333return message.Response;
335throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
367switch (message.Response.Status)
371return message.Response;
373throw _clientDiagnostics.CreateRequestFailedException(message.Response);
427switch (message.Response.Status)
432using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
434return Response.FromValue(value, message.Response);
437throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
465switch (message.Response.Status)
470using var document = JsonDocument.Parse(message.Response.ContentStream);
472return Response.FromValue(value, message.Response);
475throw _clientDiagnostics.CreateRequestFailedException(message.Response);
521switch (message.Response.Status)
526using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
528return Response.FromValue(value, message.Response);
531throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
564switch (message.Response.Status)
569using var document = JsonDocument.Parse(message.Response.ContentStream);
571return Response.FromValue(value, message.Response);
574throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\EnvironmentContainersRestOperations.cs (38)
105switch (message.Response.Status)
111using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
113return Response.FromValue(value, message.Response);
116throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
144switch (message.Response.Status)
150using var document = JsonDocument.Parse(message.Response.ContentStream);
152return Response.FromValue(value, message.Response);
155throw _clientDiagnostics.CreateRequestFailedException(message.Response);
203switch (message.Response.Status)
208using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
210return Response.FromValue(value, message.Response);
213throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
240switch (message.Response.Status)
245using var document = JsonDocument.Parse(message.Response.ContentStream);
247return Response.FromValue(value, message.Response);
250throw _clientDiagnostics.CreateRequestFailedException(message.Response);
298switch (message.Response.Status)
302return message.Response;
304throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
331switch (message.Response.Status)
335return message.Response;
337throw _clientDiagnostics.CreateRequestFailedException(message.Response);
384switch (message.Response.Status)
389using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
391return Response.FromValue(value, message.Response);
394throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
417switch (message.Response.Status)
422using var document = JsonDocument.Parse(message.Response.ContentStream);
424return Response.FromValue(value, message.Response);
427throw _clientDiagnostics.CreateRequestFailedException(message.Response);
468switch (message.Response.Status)
473using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
475return Response.FromValue(value, message.Response);
478throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
506switch (message.Response.Status)
511using var document = JsonDocument.Parse(message.Response.ContentStream);
513return Response.FromValue(value, message.Response);
516throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\EnvironmentSpecificationVersionsRestOperations.cs (38)
111switch (message.Response.Status)
117using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
119return Response.FromValue(value, message.Response);
122throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
154switch (message.Response.Status)
160using var document = JsonDocument.Parse(message.Response.ContentStream);
162return Response.FromValue(value, message.Response);
165throw _clientDiagnostics.CreateRequestFailedException(message.Response);
220switch (message.Response.Status)
225using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
227return Response.FromValue(value, message.Response);
230throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
262switch (message.Response.Status)
267using var document = JsonDocument.Parse(message.Response.ContentStream);
269return Response.FromValue(value, message.Response);
272throw _clientDiagnostics.CreateRequestFailedException(message.Response);
327switch (message.Response.Status)
331return message.Response;
333throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
365switch (message.Response.Status)
369return message.Response;
371throw _clientDiagnostics.CreateRequestFailedException(message.Response);
434switch (message.Response.Status)
439using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
441return Response.FromValue(value, message.Response);
444throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
473switch (message.Response.Status)
478using var document = JsonDocument.Parse(message.Response.ContentStream);
480return Response.FromValue(value, message.Response);
483throw _clientDiagnostics.CreateRequestFailedException(message.Response);
530switch (message.Response.Status)
535using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
537return Response.FromValue(value, message.Response);
540throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
574switch (message.Response.Status)
579using var document = JsonDocument.Parse(message.Response.ContentStream);
581return Response.FromValue(value, message.Response);
584throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\JobsRestOperations.cs (50)
105switch (message.Response.Status)
111using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
113return Response.FromValue(value, message.Response);
116throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
144switch (message.Response.Status)
150using var document = JsonDocument.Parse(message.Response.ContentStream);
152return Response.FromValue(value, message.Response);
155throw _clientDiagnostics.CreateRequestFailedException(message.Response);
203switch (message.Response.Status)
208using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
210return Response.FromValue(value, message.Response);
213throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
240switch (message.Response.Status)
245using var document = JsonDocument.Parse(message.Response.ContentStream);
247return Response.FromValue(value, message.Response);
250throw _clientDiagnostics.CreateRequestFailedException(message.Response);
298switch (message.Response.Status)
303return message.Response;
305throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
332switch (message.Response.Status)
337return message.Response;
339throw _clientDiagnostics.CreateRequestFailedException(message.Response);
386switch (message.Response.Status)
391using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
393return Response.FromValue(value, message.Response);
396throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
419switch (message.Response.Status)
424using var document = JsonDocument.Parse(message.Response.ContentStream);
426return Response.FromValue(value, message.Response);
429throw _clientDiagnostics.CreateRequestFailedException(message.Response);
478switch (message.Response.Status)
481return message.Response;
483throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
510switch (message.Response.Status)
513return message.Response;
515throw _clientDiagnostics.CreateRequestFailedException(message.Response);
570switch (message.Response.Status)
574return message.Response;
576throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
608switch (message.Response.Status)
612return message.Response;
614throw _clientDiagnostics.CreateRequestFailedException(message.Response);
655switch (message.Response.Status)
660using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
662return Response.FromValue(value, message.Response);
665throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
693switch (message.Response.Status)
698using var document = JsonDocument.Parse(message.Response.ContentStream);
700return Response.FromValue(value, message.Response);
703throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\LabelingJobsRestOperations.cs (64)
105switch (message.Response.Status)
111using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
113return Response.FromValue(value, message.Response);
116throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
144switch (message.Response.Status)
150using var document = JsonDocument.Parse(message.Response.ContentStream);
152return Response.FromValue(value, message.Response);
155throw _clientDiagnostics.CreateRequestFailedException(message.Response);
213switch (message.Response.Status)
218using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
220return Response.FromValue(value, message.Response);
223throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
252switch (message.Response.Status)
257using var document = JsonDocument.Parse(message.Response.ContentStream);
259return Response.FromValue(value, message.Response);
262throw _clientDiagnostics.CreateRequestFailedException(message.Response);
310switch (message.Response.Status)
314return message.Response;
316throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
343switch (message.Response.Status)
347return message.Response;
349throw _clientDiagnostics.CreateRequestFailedException(message.Response);
401switch (message.Response.Status)
406using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
408return Response.FromValue(value, message.Response);
411throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
435switch (message.Response.Status)
440using var document = JsonDocument.Parse(message.Response.ContentStream);
442return Response.FromValue(value, message.Response);
445throw _clientDiagnostics.CreateRequestFailedException(message.Response);
494switch (message.Response.Status)
497return message.Response;
499throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
526switch (message.Response.Status)
529return message.Response;
531throw _clientDiagnostics.CreateRequestFailedException(message.Response);
580switch (message.Response.Status)
583return message.Response;
585throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
612switch (message.Response.Status)
615return message.Response;
617throw _clientDiagnostics.CreateRequestFailedException(message.Response);
674switch (message.Response.Status)
677return message.Response;
679throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
707switch (message.Response.Status)
710return message.Response;
712throw _clientDiagnostics.CreateRequestFailedException(message.Response);
763switch (message.Response.Status)
768using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
770return Response.FromValue(value, message.Response);
773throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
801switch (message.Response.Status)
806using var document = JsonDocument.Parse(message.Response.ContentStream);
808return Response.FromValue(value, message.Response);
811throw _clientDiagnostics.CreateRequestFailedException(message.Response);
853switch (message.Response.Status)
858using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
860return Response.FromValue(value, message.Response);
863throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
892switch (message.Response.Status)
897using var document = JsonDocument.Parse(message.Response.ContentStream);
899return Response.FromValue(value, message.Response);
902throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\LinkedServicesRestOperations.cs (30)
91switch (message.Response.Status)
96using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
98return Response.FromValue(value, message.Response);
101throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
123switch (message.Response.Status)
128using var document = JsonDocument.Parse(message.Response.ContentStream);
130return Response.FromValue(value, message.Response);
133throw _clientDiagnostics.CreateRequestFailedException(message.Response);
190switch (message.Response.Status)
195using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
197return Response.FromValue(value, message.Response);
200throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
232switch (message.Response.Status)
237using var document = JsonDocument.Parse(message.Response.ContentStream);
239return Response.FromValue(value, message.Response);
242throw _clientDiagnostics.CreateRequestFailedException(message.Response);
290switch (message.Response.Status)
295using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
297return Response.FromValue(value, message.Response);
300throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
327switch (message.Response.Status)
332using var document = JsonDocument.Parse(message.Response.ContentStream);
334return Response.FromValue(value, message.Response);
337throw _clientDiagnostics.CreateRequestFailedException(message.Response);
385switch (message.Response.Status)
389return message.Response;
391throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
418switch (message.Response.Status)
422return message.Response;
424throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\MachineLearningComputeRestOperations.cs (80)
96switch (message.Response.Status)
101using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
103return Response.FromValue(value, message.Response);
106throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
129switch (message.Response.Status)
134using var document = JsonDocument.Parse(message.Response.ContentStream);
136return Response.FromValue(value, message.Response);
139throw _clientDiagnostics.CreateRequestFailedException(message.Response);
187switch (message.Response.Status)
192using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
194return Response.FromValue(value, message.Response);
197throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
224switch (message.Response.Status)
229using var document = JsonDocument.Parse(message.Response.ContentStream);
231return Response.FromValue(value, message.Response);
234throw _clientDiagnostics.CreateRequestFailedException(message.Response);
291var headers = new MachineLearningComputeCreateOrUpdateHeaders(message.Response);
292switch (message.Response.Status)
296return ResponseWithHeaders.FromValue(headers, message.Response);
298throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
330var headers = new MachineLearningComputeCreateOrUpdateHeaders(message.Response);
331switch (message.Response.Status)
335return ResponseWithHeaders.FromValue(headers, message.Response);
337throw _clientDiagnostics.CreateRequestFailedException(message.Response);
394switch (message.Response.Status)
397return message.Response;
399throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
431switch (message.Response.Status)
434return message.Response;
436throw _clientDiagnostics.CreateRequestFailedException(message.Response);
486var headers = new MachineLearningComputeDeleteHeaders(message.Response);
487switch (message.Response.Status)
491return ResponseWithHeaders.FromValue(headers, message.Response);
493throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
521var headers = new MachineLearningComputeDeleteHeaders(message.Response);
522switch (message.Response.Status)
526return ResponseWithHeaders.FromValue(headers, message.Response);
528throw _clientDiagnostics.CreateRequestFailedException(message.Response);
577switch (message.Response.Status)
582using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
584return Response.FromValue(value, message.Response);
587throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
614switch (message.Response.Status)
619using var document = JsonDocument.Parse(message.Response.ContentStream);
621return Response.FromValue(value, message.Response);
624throw _clientDiagnostics.CreateRequestFailedException(message.Response);
673switch (message.Response.Status)
678using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
680return Response.FromValue(value, message.Response);
683throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
710switch (message.Response.Status)
715using var document = JsonDocument.Parse(message.Response.ContentStream);
717return Response.FromValue(value, message.Response);
720throw _clientDiagnostics.CreateRequestFailedException(message.Response);
769switch (message.Response.Status)
772return message.Response;
774throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
801switch (message.Response.Status)
804return message.Response;
806throw _clientDiagnostics.CreateRequestFailedException(message.Response);
855switch (message.Response.Status)
858return message.Response;
860throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
887switch (message.Response.Status)
890return message.Response;
892throw _clientDiagnostics.CreateRequestFailedException(message.Response);
941switch (message.Response.Status)
944return message.Response;
946throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
973switch (message.Response.Status)
976return message.Response;
978throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1019switch (message.Response.Status)
1024using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1026return Response.FromValue(value, message.Response);
1029throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1057switch (message.Response.Status)
1062using var document = JsonDocument.Parse(message.Response.ContentStream);
1064return Response.FromValue(value, message.Response);
1067throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\MachineLearningServiceRestOperations.cs (38)
136switch (message.Response.Status)
141using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
143return Response.FromValue(value, message.Response);
146throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
177switch (message.Response.Status)
182using var document = JsonDocument.Parse(message.Response.ContentStream);
184return Response.FromValue(value, message.Response);
187throw _clientDiagnostics.CreateRequestFailedException(message.Response);
240switch (message.Response.Status)
245using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
247return Response.FromValue(value, message.Response);
250throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
278switch (message.Response.Status)
283using var document = JsonDocument.Parse(message.Response.ContentStream);
285return Response.FromValue(value, message.Response);
288throw _clientDiagnostics.CreateRequestFailedException(message.Response);
336switch (message.Response.Status)
340return message.Response;
342throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
369switch (message.Response.Status)
373return message.Response;
375throw _clientDiagnostics.CreateRequestFailedException(message.Response);
432var headers = new MachineLearningServiceCreateOrUpdateHeaders(message.Response);
433switch (message.Response.Status)
437return ResponseWithHeaders.FromValue(headers, message.Response);
439throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
471var headers = new MachineLearningServiceCreateOrUpdateHeaders(message.Response);
472switch (message.Response.Status)
476return ResponseWithHeaders.FromValue(headers, message.Response);
478throw _clientDiagnostics.CreateRequestFailedException(message.Response);
527switch (message.Response.Status)
532using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
534return Response.FromValue(value, message.Response);
537throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
573switch (message.Response.Status)
578using var document = JsonDocument.Parse(message.Response.ContentStream);
580return Response.FromValue(value, message.Response);
583throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ModelContainersRestOperations.cs (38)
101switch (message.Response.Status)
106using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
108return Response.FromValue(value, message.Response);
111throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
135switch (message.Response.Status)
140using var document = JsonDocument.Parse(message.Response.ContentStream);
142return Response.FromValue(value, message.Response);
145throw _clientDiagnostics.CreateRequestFailedException(message.Response);
201switch (message.Response.Status)
207using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
209return Response.FromValue(value, message.Response);
212throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
240switch (message.Response.Status)
246using var document = JsonDocument.Parse(message.Response.ContentStream);
248return Response.FromValue(value, message.Response);
251throw _clientDiagnostics.CreateRequestFailedException(message.Response);
299switch (message.Response.Status)
304using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
306return Response.FromValue(value, message.Response);
309throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
336switch (message.Response.Status)
341using var document = JsonDocument.Parse(message.Response.ContentStream);
343return Response.FromValue(value, message.Response);
346throw _clientDiagnostics.CreateRequestFailedException(message.Response);
394switch (message.Response.Status)
398return message.Response;
400throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
427switch (message.Response.Status)
431return message.Response;
433throw _clientDiagnostics.CreateRequestFailedException(message.Response);
475switch (message.Response.Status)
480using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
482return Response.FromValue(value, message.Response);
485throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
514switch (message.Response.Status)
519using var document = JsonDocument.Parse(message.Response.ContentStream);
521return Response.FromValue(value, message.Response);
524throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ModelVersionsRestOperations.cs (38)
143switch (message.Response.Status)
148using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
150return Response.FromValue(value, message.Response);
153throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
189switch (message.Response.Status)
194using var document = JsonDocument.Parse(message.Response.ContentStream);
196return Response.FromValue(value, message.Response);
199throw _clientDiagnostics.CreateRequestFailedException(message.Response);
262switch (message.Response.Status)
268using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
270return Response.FromValue(value, message.Response);
273throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
306switch (message.Response.Status)
312using var document = JsonDocument.Parse(message.Response.ContentStream);
314return Response.FromValue(value, message.Response);
317throw _clientDiagnostics.CreateRequestFailedException(message.Response);
372switch (message.Response.Status)
377using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
379return Response.FromValue(value, message.Response);
382throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
414switch (message.Response.Status)
419using var document = JsonDocument.Parse(message.Response.ContentStream);
421return Response.FromValue(value, message.Response);
424throw _clientDiagnostics.CreateRequestFailedException(message.Response);
479switch (message.Response.Status)
483return message.Response;
485throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
517switch (message.Response.Status)
521return message.Response;
523throw _clientDiagnostics.CreateRequestFailedException(message.Response);
577switch (message.Response.Status)
582using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
584return Response.FromValue(value, message.Response);
587throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
628switch (message.Response.Status)
633using var document = JsonDocument.Parse(message.Response.ContentStream);
635return Response.FromValue(value, message.Response);
638throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\QuotasRestOperations.cs (24)
93switch (message.Response.Status)
98using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
100return Response.FromValue(value, message.Response);
103throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
125switch (message.Response.Status)
130using var document = JsonDocument.Parse(message.Response.ContentStream);
132return Response.FromValue(value, message.Response);
135throw _clientDiagnostics.CreateRequestFailedException(message.Response);
170switch (message.Response.Status)
175using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
177return Response.FromValue(value, message.Response);
180throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
197switch (message.Response.Status)
202using var document = JsonDocument.Parse(message.Response.ContentStream);
204return Response.FromValue(value, message.Response);
207throw _clientDiagnostics.CreateRequestFailedException(message.Response);
242switch (message.Response.Status)
247using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
249return Response.FromValue(value, message.Response);
252throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
274switch (message.Response.Status)
279using var document = JsonDocument.Parse(message.Response.ContentStream);
281return Response.FromValue(value, message.Response);
284throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\WorkspaceConnectionsRestOperations.cs (30)
101switch (message.Response.Status)
106using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
108return Response.FromValue(value, message.Response);
111throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
135switch (message.Response.Status)
140using var document = JsonDocument.Parse(message.Response.ContentStream);
142return Response.FromValue(value, message.Response);
145throw _clientDiagnostics.CreateRequestFailedException(message.Response);
202switch (message.Response.Status)
207using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
209return Response.FromValue(value, message.Response);
212throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
244switch (message.Response.Status)
249using var document = JsonDocument.Parse(message.Response.ContentStream);
251return Response.FromValue(value, message.Response);
254throw _clientDiagnostics.CreateRequestFailedException(message.Response);
302switch (message.Response.Status)
307using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
309return Response.FromValue(value, message.Response);
312throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
339switch (message.Response.Status)
344using var document = JsonDocument.Parse(message.Response.ContentStream);
346return Response.FromValue(value, message.Response);
349throw _clientDiagnostics.CreateRequestFailedException(message.Response);
397switch (message.Response.Status)
401return message.Response;
403throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
430switch (message.Response.Status)
434return message.Response;
436throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\WorkspacesRestOperations.cs (74)
90switch (message.Response.Status)
95using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
97return Response.FromValue(value, message.Response);
100throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
122switch (message.Response.Status)
127using var document = JsonDocument.Parse(message.Response.ContentStream);
129return Response.FromValue(value, message.Response);
132throw _clientDiagnostics.CreateRequestFailedException(message.Response);
182switch (message.Response.Status)
187return message.Response;
189throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
216switch (message.Response.Status)
221return message.Response;
223throw _clientDiagnostics.CreateRequestFailedException(message.Response);
264switch (message.Response.Status)
269return message.Response;
271throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
293switch (message.Response.Status)
298return message.Response;
300throw _clientDiagnostics.CreateRequestFailedException(message.Response);
350switch (message.Response.Status)
355using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
357return Response.FromValue(value, message.Response);
360throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
387switch (message.Response.Status)
392using var document = JsonDocument.Parse(message.Response.ContentStream);
394return Response.FromValue(value, message.Response);
397throw _clientDiagnostics.CreateRequestFailedException(message.Response);
437switch (message.Response.Status)
442using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
444return Response.FromValue(value, message.Response);
447throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
465switch (message.Response.Status)
470using var document = JsonDocument.Parse(message.Response.ContentStream);
472return Response.FromValue(value, message.Response);
475throw _clientDiagnostics.CreateRequestFailedException(message.Response);
517switch (message.Response.Status)
522using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
524return Response.FromValue(value, message.Response);
527throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
549switch (message.Response.Status)
554using var document = JsonDocument.Parse(message.Response.ContentStream);
556return Response.FromValue(value, message.Response);
559throw _clientDiagnostics.CreateRequestFailedException(message.Response);
601switch (message.Response.Status)
604return message.Response;
606throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
628switch (message.Response.Status)
631return message.Response;
633throw _clientDiagnostics.CreateRequestFailedException(message.Response);
664switch (message.Response.Status)
669using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
671return Response.FromValue(value, message.Response);
674throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
685switch (message.Response.Status)
690using var document = JsonDocument.Parse(message.Response.ContentStream);
692return Response.FromValue(value, message.Response);
695throw _clientDiagnostics.CreateRequestFailedException(message.Response);
731switch (message.Response.Status)
736using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
738return Response.FromValue(value, message.Response);
741throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
764switch (message.Response.Status)
769using var document = JsonDocument.Parse(message.Response.ContentStream);
771return Response.FromValue(value, message.Response);
774throw _clientDiagnostics.CreateRequestFailedException(message.Response);
805switch (message.Response.Status)
810using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
812return Response.FromValue(value, message.Response);
815throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
833switch (message.Response.Status)
838using var document = JsonDocument.Parse(message.Response.ContentStream);
840return Response.FromValue(value, message.Response);
843throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Azure.ResourceManager.Network (4858)
Generated\RestOperations\ApplicationGatewayAvailableSslPredefinedPoliciesRestOperations.cs (24)
70switch (message.Response.Status)
75using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
77return Response.FromValue(value, message.Response);
80throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
90switch (message.Response.Status)
95using var document = JsonDocument.Parse(message.Response.ContentStream);
97return Response.FromValue(value, message.Response);
100throw _clientDiagnostics.CreateRequestFailedException(message.Response);
135switch (message.Response.Status)
140using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
142return Response.FromValue(value, message.Response);
145throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
162switch (message.Response.Status)
167using var document = JsonDocument.Parse(message.Response.ContentStream);
169return Response.FromValue(value, message.Response);
172throw _clientDiagnostics.CreateRequestFailedException(message.Response);
203switch (message.Response.Status)
208using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
210return Response.FromValue(value, message.Response);
213throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
230switch (message.Response.Status)
235using var document = JsonDocument.Parse(message.Response.ContentStream);
237return Response.FromValue(value, message.Response);
240throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ApplicationGatewayPrivateEndpointConnectionsRestOperations.cs (38)
92switch (message.Response.Status)
97return message.Response;
99throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
126switch (message.Response.Status)
131return message.Response;
133throw _clientDiagnostics.CreateRequestFailedException(message.Response);
191switch (message.Response.Status)
195return message.Response;
197throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
229switch (message.Response.Status)
233return message.Response;
235throw _clientDiagnostics.CreateRequestFailedException(message.Response);
284switch (message.Response.Status)
289using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
291return Response.FromValue(value, message.Response);
294return Response.FromValue((ApplicationGatewayPrivateEndpointConnectionData)null, message.Response);
296throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
323switch (message.Response.Status)
328using var document = JsonDocument.Parse(message.Response.ContentStream);
330return Response.FromValue(value, message.Response);
333return Response.FromValue((ApplicationGatewayPrivateEndpointConnectionData)null, message.Response);
335throw _clientDiagnostics.CreateRequestFailedException(message.Response);
378switch (message.Response.Status)
383using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
385return Response.FromValue(value, message.Response);
388throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
410switch (message.Response.Status)
415using var document = JsonDocument.Parse(message.Response.ContentStream);
417return Response.FromValue(value, message.Response);
420throw _clientDiagnostics.CreateRequestFailedException(message.Response);
461switch (message.Response.Status)
466using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
468return Response.FromValue(value, message.Response);
471throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
498switch (message.Response.Status)
503using var document = JsonDocument.Parse(message.Response.ContentStream);
505return Response.FromValue(value, message.Response);
508throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ApplicationGatewaysRestOperations.cs (86)
85switch (message.Response.Status)
90return message.Response;
92throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
114switch (message.Response.Status)
119return message.Response;
121throw _clientDiagnostics.CreateRequestFailedException(message.Response);
163switch (message.Response.Status)
168using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
170return Response.FromValue(value, message.Response);
173return Response.FromValue((ApplicationGatewayData)null, message.Response);
175throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
197switch (message.Response.Status)
202using var document = JsonDocument.Parse(message.Response.ContentStream);
204return Response.FromValue(value, message.Response);
207return Response.FromValue((ApplicationGatewayData)null, message.Response);
209throw _clientDiagnostics.CreateRequestFailedException(message.Response);
260switch (message.Response.Status)
264return message.Response;
266throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
293switch (message.Response.Status)
297return message.Response;
299throw _clientDiagnostics.CreateRequestFailedException(message.Response);
350switch (message.Response.Status)
355using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
357return Response.FromValue(value, message.Response);
360throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
387switch (message.Response.Status)
392using var document = JsonDocument.Parse(message.Response.ContentStream);
394return Response.FromValue(value, message.Response);
397throw _clientDiagnostics.CreateRequestFailedException(message.Response);
433switch (message.Response.Status)
438using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
440return Response.FromValue(value, message.Response);
443throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
460switch (message.Response.Status)
465using var document = JsonDocument.Parse(message.Response.ContentStream);
467return Response.FromValue(value, message.Response);
470throw _clientDiagnostics.CreateRequestFailedException(message.Response);
497switch (message.Response.Status)
502using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
504return Response.FromValue(value, message.Response);
507throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
517switch (message.Response.Status)
522using var document = JsonDocument.Parse(message.Response.ContentStream);
524return Response.FromValue(value, message.Response);
527throw _clientDiagnostics.CreateRequestFailedException(message.Response);
570switch (message.Response.Status)
574return message.Response;
576throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
598switch (message.Response.Status)
602return message.Response;
604throw _clientDiagnostics.CreateRequestFailedException(message.Response);
647switch (message.Response.Status)
651return message.Response;
653throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
675switch (message.Response.Status)
679return message.Response;
681throw _clientDiagnostics.CreateRequestFailedException(message.Response);
729switch (message.Response.Status)
733return message.Response;
735throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
758switch (message.Response.Status)
762return message.Response;
764throw _clientDiagnostics.CreateRequestFailedException(message.Response);
821switch (message.Response.Status)
825return message.Response;
827throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
855switch (message.Response.Status)
859return message.Response;
861throw _clientDiagnostics.CreateRequestFailedException(message.Response);
897switch (message.Response.Status)
902using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
904return Response.FromValue(value, message.Response);
907throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
929switch (message.Response.Status)
934using var document = JsonDocument.Parse(message.Response.ContentStream);
936return Response.FromValue(value, message.Response);
939throw _clientDiagnostics.CreateRequestFailedException(message.Response);
970switch (message.Response.Status)
975using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
977return Response.FromValue(value, message.Response);
980throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
997switch (message.Response.Status)
1002using var document = JsonDocument.Parse(message.Response.ContentStream);
1004return Response.FromValue(value, message.Response);
1007throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ApplicationSecurityGroupsRestOperations.cs (62)
85switch (message.Response.Status)
90return message.Response;
92throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
114switch (message.Response.Status)
119return message.Response;
121throw _clientDiagnostics.CreateRequestFailedException(message.Response);
163switch (message.Response.Status)
168using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
170return Response.FromValue(value, message.Response);
173return Response.FromValue((ApplicationSecurityGroupData)null, message.Response);
175throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
197switch (message.Response.Status)
202using var document = JsonDocument.Parse(message.Response.ContentStream);
204return Response.FromValue(value, message.Response);
207return Response.FromValue((ApplicationSecurityGroupData)null, message.Response);
209throw _clientDiagnostics.CreateRequestFailedException(message.Response);
260switch (message.Response.Status)
264return message.Response;
266throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
293switch (message.Response.Status)
297return message.Response;
299throw _clientDiagnostics.CreateRequestFailedException(message.Response);
350switch (message.Response.Status)
355using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
357return Response.FromValue(value, message.Response);
360throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
387switch (message.Response.Status)
392using var document = JsonDocument.Parse(message.Response.ContentStream);
394return Response.FromValue(value, message.Response);
397throw _clientDiagnostics.CreateRequestFailedException(message.Response);
424switch (message.Response.Status)
429using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
431return Response.FromValue(value, message.Response);
434throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
444switch (message.Response.Status)
449using var document = JsonDocument.Parse(message.Response.ContentStream);
451return Response.FromValue(value, message.Response);
454throw _clientDiagnostics.CreateRequestFailedException(message.Response);
490switch (message.Response.Status)
495using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
497return Response.FromValue(value, message.Response);
500throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
517switch (message.Response.Status)
522using var document = JsonDocument.Parse(message.Response.ContentStream);
524return Response.FromValue(value, message.Response);
527throw _clientDiagnostics.CreateRequestFailedException(message.Response);
558switch (message.Response.Status)
563using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
565return Response.FromValue(value, message.Response);
568throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
585switch (message.Response.Status)
590using var document = JsonDocument.Parse(message.Response.ContentStream);
592return Response.FromValue(value, message.Response);
595throw _clientDiagnostics.CreateRequestFailedException(message.Response);
631switch (message.Response.Status)
636using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
638return Response.FromValue(value, message.Response);
641throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
663switch (message.Response.Status)
668using var document = JsonDocument.Parse(message.Response.ContentStream);
670return Response.FromValue(value, message.Response);
673throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\AvailableDelegationsRestOperations.cs (32)
79switch (message.Response.Status)
84using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
86return Response.FromValue(value, message.Response);
89throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
106switch (message.Response.Status)
111using var document = JsonDocument.Parse(message.Response.ContentStream);
113return Response.FromValue(value, message.Response);
116throw _clientDiagnostics.CreateRequestFailedException(message.Response);
159switch (message.Response.Status)
164using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
166return Response.FromValue(value, message.Response);
169throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
191switch (message.Response.Status)
196using var document = JsonDocument.Parse(message.Response.ContentStream);
198return Response.FromValue(value, message.Response);
201throw _clientDiagnostics.CreateRequestFailedException(message.Response);
237switch (message.Response.Status)
242using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
244return Response.FromValue(value, message.Response);
247throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
269switch (message.Response.Status)
274using var document = JsonDocument.Parse(message.Response.ContentStream);
276return Response.FromValue(value, message.Response);
279throw _clientDiagnostics.CreateRequestFailedException(message.Response);
320switch (message.Response.Status)
325using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
327return Response.FromValue(value, message.Response);
330throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
357switch (message.Response.Status)
362using var document = JsonDocument.Parse(message.Response.ContentStream);
364return Response.FromValue(value, message.Response);
367throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\AvailablePrivateEndpointTypesRestOperations.cs (32)
79switch (message.Response.Status)
84using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
86return Response.FromValue(value, message.Response);
89throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
106switch (message.Response.Status)
111using var document = JsonDocument.Parse(message.Response.ContentStream);
113return Response.FromValue(value, message.Response);
116throw _clientDiagnostics.CreateRequestFailedException(message.Response);
159switch (message.Response.Status)
164using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
166return Response.FromValue(value, message.Response);
169throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
191switch (message.Response.Status)
196using var document = JsonDocument.Parse(message.Response.ContentStream);
198return Response.FromValue(value, message.Response);
201throw _clientDiagnostics.CreateRequestFailedException(message.Response);
237switch (message.Response.Status)
242using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
244return Response.FromValue(value, message.Response);
247throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
269switch (message.Response.Status)
274using var document = JsonDocument.Parse(message.Response.ContentStream);
276return Response.FromValue(value, message.Response);
279throw _clientDiagnostics.CreateRequestFailedException(message.Response);
320switch (message.Response.Status)
325using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
327return Response.FromValue(value, message.Response);
330throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
357switch (message.Response.Status)
362using var document = JsonDocument.Parse(message.Response.ContentStream);
364return Response.FromValue(value, message.Response);
367throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\AvailableServiceAliasesRestOperations.cs (32)
79switch (message.Response.Status)
84using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
86return Response.FromValue(value, message.Response);
89throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
106switch (message.Response.Status)
111using var document = JsonDocument.Parse(message.Response.ContentStream);
113return Response.FromValue(value, message.Response);
116throw _clientDiagnostics.CreateRequestFailedException(message.Response);
159switch (message.Response.Status)
164using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
166return Response.FromValue(value, message.Response);
169throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
191switch (message.Response.Status)
196using var document = JsonDocument.Parse(message.Response.ContentStream);
198return Response.FromValue(value, message.Response);
201throw _clientDiagnostics.CreateRequestFailedException(message.Response);
237switch (message.Response.Status)
242using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
244return Response.FromValue(value, message.Response);
247throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
269switch (message.Response.Status)
274using var document = JsonDocument.Parse(message.Response.ContentStream);
276return Response.FromValue(value, message.Response);
279throw _clientDiagnostics.CreateRequestFailedException(message.Response);
320switch (message.Response.Status)
325using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
327return Response.FromValue(value, message.Response);
330throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
357switch (message.Response.Status)
362using var document = JsonDocument.Parse(message.Response.ContentStream);
364return Response.FromValue(value, message.Response);
367throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\AzureFirewallsRestOperations.cs (60)
85switch (message.Response.Status)
90return message.Response;
92throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
114switch (message.Response.Status)
119return message.Response;
121throw _clientDiagnostics.CreateRequestFailedException(message.Response);
163switch (message.Response.Status)
168using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
170return Response.FromValue(value, message.Response);
173return Response.FromValue((AzureFirewallData)null, message.Response);
175throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
197switch (message.Response.Status)
202using var document = JsonDocument.Parse(message.Response.ContentStream);
204return Response.FromValue(value, message.Response);
207return Response.FromValue((AzureFirewallData)null, message.Response);
209throw _clientDiagnostics.CreateRequestFailedException(message.Response);
260switch (message.Response.Status)
264return message.Response;
266throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
293switch (message.Response.Status)
297return message.Response;
299throw _clientDiagnostics.CreateRequestFailedException(message.Response);
350switch (message.Response.Status)
354return message.Response;
356throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
383switch (message.Response.Status)
387return message.Response;
389throw _clientDiagnostics.CreateRequestFailedException(message.Response);
425switch (message.Response.Status)
430using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
432return Response.FromValue(value, message.Response);
435throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
452switch (message.Response.Status)
457using var document = JsonDocument.Parse(message.Response.ContentStream);
459return Response.FromValue(value, message.Response);
462throw _clientDiagnostics.CreateRequestFailedException(message.Response);
489switch (message.Response.Status)
494using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
496return Response.FromValue(value, message.Response);
499throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
509switch (message.Response.Status)
514using var document = JsonDocument.Parse(message.Response.ContentStream);
516return Response.FromValue(value, message.Response);
519throw _clientDiagnostics.CreateRequestFailedException(message.Response);
555switch (message.Response.Status)
560using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
562return Response.FromValue(value, message.Response);
565throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
587switch (message.Response.Status)
592using var document = JsonDocument.Parse(message.Response.ContentStream);
594return Response.FromValue(value, message.Response);
597throw _clientDiagnostics.CreateRequestFailedException(message.Response);
628switch (message.Response.Status)
633using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
635return Response.FromValue(value, message.Response);
638throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
655switch (message.Response.Status)
660using var document = JsonDocument.Parse(message.Response.ContentStream);
662return Response.FromValue(value, message.Response);
665throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\BastionHostsRestOperations.cs (54)
85switch (message.Response.Status)
90return message.Response;
92throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
114switch (message.Response.Status)
119return message.Response;
121throw _clientDiagnostics.CreateRequestFailedException(message.Response);
163switch (message.Response.Status)
168using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
170return Response.FromValue(value, message.Response);
173return Response.FromValue((BastionHostData)null, message.Response);
175throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
197switch (message.Response.Status)
202using var document = JsonDocument.Parse(message.Response.ContentStream);
204return Response.FromValue(value, message.Response);
207return Response.FromValue((BastionHostData)null, message.Response);
209throw _clientDiagnostics.CreateRequestFailedException(message.Response);
260switch (message.Response.Status)
264return message.Response;
266throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
293switch (message.Response.Status)
297return message.Response;
299throw _clientDiagnostics.CreateRequestFailedException(message.Response);
326switch (message.Response.Status)
331using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
333return Response.FromValue(value, message.Response);
336throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
346switch (message.Response.Status)
351using var document = JsonDocument.Parse(message.Response.ContentStream);
353return Response.FromValue(value, message.Response);
356throw _clientDiagnostics.CreateRequestFailedException(message.Response);
392switch (message.Response.Status)
397using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
399return Response.FromValue(value, message.Response);
402throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
419switch (message.Response.Status)
424using var document = JsonDocument.Parse(message.Response.ContentStream);
426return Response.FromValue(value, message.Response);
429throw _clientDiagnostics.CreateRequestFailedException(message.Response);
460switch (message.Response.Status)
465using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
467return Response.FromValue(value, message.Response);
470throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
487switch (message.Response.Status)
492using var document = JsonDocument.Parse(message.Response.ContentStream);
494return Response.FromValue(value, message.Response);
497throw _clientDiagnostics.CreateRequestFailedException(message.Response);
533switch (message.Response.Status)
538using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
540return Response.FromValue(value, message.Response);
543throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
565switch (message.Response.Status)
570using var document = JsonDocument.Parse(message.Response.ContentStream);
572return Response.FromValue(value, message.Response);
575throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ConnectionMonitorsRestOperations.cs (56)
106switch (message.Response.Status)
110return message.Response;
112throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
145switch (message.Response.Status)
149return message.Response;
151throw _clientDiagnostics.CreateRequestFailedException(message.Response);
200switch (message.Response.Status)
205using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
207return Response.FromValue(value, message.Response);
210return Response.FromValue((ConnectionMonitorData)null, message.Response);
212throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
239switch (message.Response.Status)
244using var document = JsonDocument.Parse(message.Response.ContentStream);
246return Response.FromValue(value, message.Response);
249return Response.FromValue((ConnectionMonitorData)null, message.Response);
251throw _clientDiagnostics.CreateRequestFailedException(message.Response);
300switch (message.Response.Status)
304return message.Response;
306throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
333switch (message.Response.Status)
337return message.Response;
339throw _clientDiagnostics.CreateRequestFailedException(message.Response);
397switch (message.Response.Status)
402using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
404return Response.FromValue(value, message.Response);
407throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
439switch (message.Response.Status)
444using var document = JsonDocument.Parse(message.Response.ContentStream);
446return Response.FromValue(value, message.Response);
449throw _clientDiagnostics.CreateRequestFailedException(message.Response);
499switch (message.Response.Status)
503return message.Response;
505throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
532switch (message.Response.Status)
536return message.Response;
538throw _clientDiagnostics.CreateRequestFailedException(message.Response);
588switch (message.Response.Status)
592return message.Response;
594throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
621switch (message.Response.Status)
625return message.Response;
627throw _clientDiagnostics.CreateRequestFailedException(message.Response);
677switch (message.Response.Status)
681return message.Response;
683throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
710switch (message.Response.Status)
714return message.Response;
716throw _clientDiagnostics.CreateRequestFailedException(message.Response);
759switch (message.Response.Status)
764using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
766return Response.FromValue(value, message.Response);
769throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
791switch (message.Response.Status)
796using var document = JsonDocument.Parse(message.Response.ContentStream);
798return Response.FromValue(value, message.Response);
801throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\CustomIPPrefixesRestOperations.cs (62)
85switch (message.Response.Status)
90return message.Response;
92throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
114switch (message.Response.Status)
119return message.Response;
121throw _clientDiagnostics.CreateRequestFailedException(message.Response);
168switch (message.Response.Status)
173using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
175return Response.FromValue(value, message.Response);
178return Response.FromValue((CustomIpPrefixData)null, message.Response);
180throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
203switch (message.Response.Status)
208using var document = JsonDocument.Parse(message.Response.ContentStream);
210return Response.FromValue(value, message.Response);
213return Response.FromValue((CustomIpPrefixData)null, message.Response);
215throw _clientDiagnostics.CreateRequestFailedException(message.Response);
266switch (message.Response.Status)
270return message.Response;
272throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
299switch (message.Response.Status)
303return message.Response;
305throw _clientDiagnostics.CreateRequestFailedException(message.Response);
356switch (message.Response.Status)
361using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
363return Response.FromValue(value, message.Response);
366throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
393switch (message.Response.Status)
398using var document = JsonDocument.Parse(message.Response.ContentStream);
400return Response.FromValue(value, message.Response);
403throw _clientDiagnostics.CreateRequestFailedException(message.Response);
430switch (message.Response.Status)
435using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
437return Response.FromValue(value, message.Response);
440throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
450switch (message.Response.Status)
455using var document = JsonDocument.Parse(message.Response.ContentStream);
457return Response.FromValue(value, message.Response);
460throw _clientDiagnostics.CreateRequestFailedException(message.Response);
496switch (message.Response.Status)
501using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
503return Response.FromValue(value, message.Response);
506throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
523switch (message.Response.Status)
528using var document = JsonDocument.Parse(message.Response.ContentStream);
530return Response.FromValue(value, message.Response);
533throw _clientDiagnostics.CreateRequestFailedException(message.Response);
564switch (message.Response.Status)
569using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
571return Response.FromValue(value, message.Response);
574throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
591switch (message.Response.Status)
596using var document = JsonDocument.Parse(message.Response.ContentStream);
598return Response.FromValue(value, message.Response);
601throw _clientDiagnostics.CreateRequestFailedException(message.Response);
637switch (message.Response.Status)
642using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
644return Response.FromValue(value, message.Response);
647throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
669switch (message.Response.Status)
674using var document = JsonDocument.Parse(message.Response.ContentStream);
676return Response.FromValue(value, message.Response);
679throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\DdosCustomPoliciesRestOperations.cs (30)
85switch (message.Response.Status)
90return message.Response;
92throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
114switch (message.Response.Status)
119return message.Response;
121throw _clientDiagnostics.CreateRequestFailedException(message.Response);
163switch (message.Response.Status)
168using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
170return Response.FromValue(value, message.Response);
173return Response.FromValue((DdosCustomPolicyData)null, message.Response);
175throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
197switch (message.Response.Status)
202using var document = JsonDocument.Parse(message.Response.ContentStream);
204return Response.FromValue(value, message.Response);
207return Response.FromValue((DdosCustomPolicyData)null, message.Response);
209throw _clientDiagnostics.CreateRequestFailedException(message.Response);
260switch (message.Response.Status)
264return message.Response;
266throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
293switch (message.Response.Status)
297return message.Response;
299throw _clientDiagnostics.CreateRequestFailedException(message.Response);
350switch (message.Response.Status)
355using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
357return Response.FromValue(value, message.Response);
360throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
387switch (message.Response.Status)
392using var document = JsonDocument.Parse(message.Response.ContentStream);
394return Response.FromValue(value, message.Response);
397throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\DdosProtectionPlansRestOperations.cs (62)
85switch (message.Response.Status)
90return message.Response;
92throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
114switch (message.Response.Status)
119return message.Response;
121throw _clientDiagnostics.CreateRequestFailedException(message.Response);
163switch (message.Response.Status)
168using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
170return Response.FromValue(value, message.Response);
173return Response.FromValue((DdosProtectionPlanData)null, message.Response);
175throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
197switch (message.Response.Status)
202using var document = JsonDocument.Parse(message.Response.ContentStream);
204return Response.FromValue(value, message.Response);
207return Response.FromValue((DdosProtectionPlanData)null, message.Response);
209throw _clientDiagnostics.CreateRequestFailedException(message.Response);
260switch (message.Response.Status)
264return message.Response;
266throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
293switch (message.Response.Status)
297return message.Response;
299throw _clientDiagnostics.CreateRequestFailedException(message.Response);
350switch (message.Response.Status)
355using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
357return Response.FromValue(value, message.Response);
360throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
387switch (message.Response.Status)
392using var document = JsonDocument.Parse(message.Response.ContentStream);
394return Response.FromValue(value, message.Response);
397throw _clientDiagnostics.CreateRequestFailedException(message.Response);
424switch (message.Response.Status)
429using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
431return Response.FromValue(value, message.Response);
434throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
444switch (message.Response.Status)
449using var document = JsonDocument.Parse(message.Response.ContentStream);
451return Response.FromValue(value, message.Response);
454throw _clientDiagnostics.CreateRequestFailedException(message.Response);
490switch (message.Response.Status)
495using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
497return Response.FromValue(value, message.Response);
500throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
517switch (message.Response.Status)
522using var document = JsonDocument.Parse(message.Response.ContentStream);
524return Response.FromValue(value, message.Response);
527throw _clientDiagnostics.CreateRequestFailedException(message.Response);
558switch (message.Response.Status)
563using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
565return Response.FromValue(value, message.Response);
568throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
585switch (message.Response.Status)
590using var document = JsonDocument.Parse(message.Response.ContentStream);
592return Response.FromValue(value, message.Response);
595throw _clientDiagnostics.CreateRequestFailedException(message.Response);
631switch (message.Response.Status)
636using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
638return Response.FromValue(value, message.Response);
641throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
663switch (message.Response.Status)
668using var document = JsonDocument.Parse(message.Response.ContentStream);
670return Response.FromValue(value, message.Response);
673throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\DefaultSecurityRulesRestOperations.cs (24)
86switch (message.Response.Status)
91using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
93return Response.FromValue(value, message.Response);
96throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
118switch (message.Response.Status)
123using var document = JsonDocument.Parse(message.Response.ContentStream);
125return Response.FromValue(value, message.Response);
128throw _clientDiagnostics.CreateRequestFailedException(message.Response);
177switch (message.Response.Status)
182using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
184return Response.FromValue(value, message.Response);
187throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
214switch (message.Response.Status)
219using var document = JsonDocument.Parse(message.Response.ContentStream);
221return Response.FromValue(value, message.Response);
224throw _clientDiagnostics.CreateRequestFailedException(message.Response);
265switch (message.Response.Status)
270using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
272return Response.FromValue(value, message.Response);
275throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
302switch (message.Response.Status)
307using var document = JsonDocument.Parse(message.Response.ContentStream);
309return Response.FromValue(value, message.Response);
312throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\DscpConfigurationRestOperations.cs (54)
94switch (message.Response.Status)
98return message.Response;
100throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
127switch (message.Response.Status)
131return message.Response;
133throw _clientDiagnostics.CreateRequestFailedException(message.Response);
175switch (message.Response.Status)
180return message.Response;
182throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
204switch (message.Response.Status)
209return message.Response;
211throw _clientDiagnostics.CreateRequestFailedException(message.Response);
253switch (message.Response.Status)
258using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
260return Response.FromValue(value, message.Response);
263return Response.FromValue((DscpConfigurationData)null, message.Response);
265throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
287switch (message.Response.Status)
292using var document = JsonDocument.Parse(message.Response.ContentStream);
294return Response.FromValue(value, message.Response);
297return Response.FromValue((DscpConfigurationData)null, message.Response);
299throw _clientDiagnostics.CreateRequestFailedException(message.Response);
335switch (message.Response.Status)
340using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
342return Response.FromValue(value, message.Response);
345throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
362switch (message.Response.Status)
367using var document = JsonDocument.Parse(message.Response.ContentStream);
369return Response.FromValue(value, message.Response);
372throw _clientDiagnostics.CreateRequestFailedException(message.Response);
399switch (message.Response.Status)
404using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
406return Response.FromValue(value, message.Response);
409throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
419switch (message.Response.Status)
424using var document = JsonDocument.Parse(message.Response.ContentStream);
426return Response.FromValue(value, message.Response);
429throw _clientDiagnostics.CreateRequestFailedException(message.Response);
465switch (message.Response.Status)
470using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
472return Response.FromValue(value, message.Response);
475throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
497switch (message.Response.Status)
502using var document = JsonDocument.Parse(message.Response.ContentStream);
504return Response.FromValue(value, message.Response);
507throw _clientDiagnostics.CreateRequestFailedException(message.Response);
538switch (message.Response.Status)
543using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
545return Response.FromValue(value, message.Response);
548throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
565switch (message.Response.Status)
570using var document = JsonDocument.Parse(message.Response.ContentStream);
572return Response.FromValue(value, message.Response);
575throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ExpressRouteCircuitAuthorizationsRestOperations.cs (38)
92switch (message.Response.Status)
97return message.Response;
99throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
126switch (message.Response.Status)
131return message.Response;
133throw _clientDiagnostics.CreateRequestFailedException(message.Response);
182switch (message.Response.Status)
187using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
189return Response.FromValue(value, message.Response);
192return Response.FromValue((ExpressRouteCircuitAuthorizationData)null, message.Response);
194throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
221switch (message.Response.Status)
226using var document = JsonDocument.Parse(message.Response.ContentStream);
228return Response.FromValue(value, message.Response);
231return Response.FromValue((ExpressRouteCircuitAuthorizationData)null, message.Response);
233throw _clientDiagnostics.CreateRequestFailedException(message.Response);
291switch (message.Response.Status)
295return message.Response;
297throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
329switch (message.Response.Status)
333return message.Response;
335throw _clientDiagnostics.CreateRequestFailedException(message.Response);
378switch (message.Response.Status)
383using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
385return Response.FromValue(value, message.Response);
388throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
410switch (message.Response.Status)
415using var document = JsonDocument.Parse(message.Response.ContentStream);
417return Response.FromValue(value, message.Response);
420throw _clientDiagnostics.CreateRequestFailedException(message.Response);
461switch (message.Response.Status)
466using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
468return Response.FromValue(value, message.Response);
471throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
498switch (message.Response.Status)
503using var document = JsonDocument.Parse(message.Response.ContentStream);
505return Response.FromValue(value, message.Response);
508throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ExpressRouteCircuitConnectionsRestOperations.cs (38)
99switch (message.Response.Status)
104return message.Response;
106throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
138switch (message.Response.Status)
143return message.Response;
145throw _clientDiagnostics.CreateRequestFailedException(message.Response);
201switch (message.Response.Status)
206using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
208return Response.FromValue(value, message.Response);
211return Response.FromValue((ExpressRouteCircuitConnectionData)null, message.Response);
213throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
245switch (message.Response.Status)
250using var document = JsonDocument.Parse(message.Response.ContentStream);
252return Response.FromValue(value, message.Response);
255return Response.FromValue((ExpressRouteCircuitConnectionData)null, message.Response);
257throw _clientDiagnostics.CreateRequestFailedException(message.Response);
322switch (message.Response.Status)
326return message.Response;
328throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
365switch (message.Response.Status)
369return message.Response;
371throw _clientDiagnostics.CreateRequestFailedException(message.Response);
421switch (message.Response.Status)
426using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
428return Response.FromValue(value, message.Response);
431throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
458switch (message.Response.Status)
463using var document = JsonDocument.Parse(message.Response.ContentStream);
465return Response.FromValue(value, message.Response);
468throw _clientDiagnostics.CreateRequestFailedException(message.Response);
514switch (message.Response.Status)
519using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
521return Response.FromValue(value, message.Response);
524throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
556switch (message.Response.Status)
561using var document = JsonDocument.Parse(message.Response.ContentStream);
563return Response.FromValue(value, message.Response);
566throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ExpressRouteCircuitPeeringsRestOperations.cs (38)
92switch (message.Response.Status)
97return message.Response;
99throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
126switch (message.Response.Status)
131return message.Response;
133throw _clientDiagnostics.CreateRequestFailedException(message.Response);
182switch (message.Response.Status)
187using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
189return Response.FromValue(value, message.Response);
192return Response.FromValue((ExpressRouteCircuitPeeringData)null, message.Response);
194throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
221switch (message.Response.Status)
226using var document = JsonDocument.Parse(message.Response.ContentStream);
228return Response.FromValue(value, message.Response);
231return Response.FromValue((ExpressRouteCircuitPeeringData)null, message.Response);
233throw _clientDiagnostics.CreateRequestFailedException(message.Response);
291switch (message.Response.Status)
295return message.Response;
297throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
329switch (message.Response.Status)
333return message.Response;
335throw _clientDiagnostics.CreateRequestFailedException(message.Response);
378switch (message.Response.Status)
383using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
385return Response.FromValue(value, message.Response);
388throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
410switch (message.Response.Status)
415using var document = JsonDocument.Parse(message.Response.ContentStream);
417return Response.FromValue(value, message.Response);
420throw _clientDiagnostics.CreateRequestFailedException(message.Response);
461switch (message.Response.Status)
466using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
468return Response.FromValue(value, message.Response);
471throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
498switch (message.Response.Status)
503using var document = JsonDocument.Parse(message.Response.ContentStream);
505return Response.FromValue(value, message.Response);
508throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ExpressRouteCircuitsRestOperations.cs (96)
85switch (message.Response.Status)
90return message.Response;
92throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
114switch (message.Response.Status)
119return message.Response;
121throw _clientDiagnostics.CreateRequestFailedException(message.Response);
163switch (message.Response.Status)
168using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
170return Response.FromValue(value, message.Response);
173return Response.FromValue((ExpressRouteCircuitData)null, message.Response);
175throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
197switch (message.Response.Status)
202using var document = JsonDocument.Parse(message.Response.ContentStream);
204return Response.FromValue(value, message.Response);
207return Response.FromValue((ExpressRouteCircuitData)null, message.Response);
209throw _clientDiagnostics.CreateRequestFailedException(message.Response);
260switch (message.Response.Status)
264return message.Response;
266throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
293switch (message.Response.Status)
297return message.Response;
299throw _clientDiagnostics.CreateRequestFailedException(message.Response);
350switch (message.Response.Status)
355using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
357return Response.FromValue(value, message.Response);
360throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
387switch (message.Response.Status)
392using var document = JsonDocument.Parse(message.Response.ContentStream);
394return Response.FromValue(value, message.Response);
397throw _clientDiagnostics.CreateRequestFailedException(message.Response);
453switch (message.Response.Status)
457return message.Response;
459throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
491switch (message.Response.Status)
495return message.Response;
497throw _clientDiagnostics.CreateRequestFailedException(message.Response);
553switch (message.Response.Status)
557return message.Response;
559throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
591switch (message.Response.Status)
595return message.Response;
597throw _clientDiagnostics.CreateRequestFailedException(message.Response);
653switch (message.Response.Status)
657return message.Response;
659throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
691switch (message.Response.Status)
695return message.Response;
697throw _clientDiagnostics.CreateRequestFailedException(message.Response);
740switch (message.Response.Status)
745using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
747return Response.FromValue(value, message.Response);
750throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
772switch (message.Response.Status)
777using var document = JsonDocument.Parse(message.Response.ContentStream);
779return Response.FromValue(value, message.Response);
782throw _clientDiagnostics.CreateRequestFailedException(message.Response);
832switch (message.Response.Status)
837using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
839return Response.FromValue(value, message.Response);
842throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
869switch (message.Response.Status)
874using var document = JsonDocument.Parse(message.Response.ContentStream);
876return Response.FromValue(value, message.Response);
879throw _clientDiagnostics.CreateRequestFailedException(message.Response);
915switch (message.Response.Status)
920using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
922return Response.FromValue(value, message.Response);
925throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
942switch (message.Response.Status)
947using var document = JsonDocument.Parse(message.Response.ContentStream);
949return Response.FromValue(value, message.Response);
952throw _clientDiagnostics.CreateRequestFailedException(message.Response);
979switch (message.Response.Status)
984using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
986return Response.FromValue(value, message.Response);
989throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
999switch (message.Response.Status)
1004using var document = JsonDocument.Parse(message.Response.ContentStream);
1006return Response.FromValue(value, message.Response);
1009throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1045switch (message.Response.Status)
1050using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1052return Response.FromValue(value, message.Response);
1055throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1077switch (message.Response.Status)
1082using var document = JsonDocument.Parse(message.Response.ContentStream);
1084return Response.FromValue(value, message.Response);
1087throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1118switch (message.Response.Status)
1123using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1125return Response.FromValue(value, message.Response);
1128throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1145switch (message.Response.Status)
1150using var document = JsonDocument.Parse(message.Response.ContentStream);
1152return Response.FromValue(value, message.Response);
1155throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ExpressRouteConnectionsRestOperations.cs (30)
101switch (message.Response.Status)
105return message.Response;
107throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
139switch (message.Response.Status)
143return message.Response;
145throw _clientDiagnostics.CreateRequestFailedException(message.Response);
194switch (message.Response.Status)
199using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
201return Response.FromValue(value, message.Response);
204return Response.FromValue((ExpressRouteConnectionData)null, message.Response);
206throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
233switch (message.Response.Status)
238using var document = JsonDocument.Parse(message.Response.ContentStream);
240return Response.FromValue(value, message.Response);
243return Response.FromValue((ExpressRouteConnectionData)null, message.Response);
245throw _clientDiagnostics.CreateRequestFailedException(message.Response);
294switch (message.Response.Status)
299return message.Response;
301throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
328switch (message.Response.Status)
333return message.Response;
335throw _clientDiagnostics.CreateRequestFailedException(message.Response);
378switch (message.Response.Status)
383using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
385return Response.FromValue(value, message.Response);
388throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
410switch (message.Response.Status)
415using var document = JsonDocument.Parse(message.Response.ContentStream);
417return Response.FromValue(value, message.Response);
420throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ExpressRouteCrossConnectionPeeringsRestOperations.cs (38)
86switch (message.Response.Status)
91using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
93return Response.FromValue(value, message.Response);
96throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
118switch (message.Response.Status)
123using var document = JsonDocument.Parse(message.Response.ContentStream);
125return Response.FromValue(value, message.Response);
128throw _clientDiagnostics.CreateRequestFailedException(message.Response);
177switch (message.Response.Status)
182return message.Response;
184throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
211switch (message.Response.Status)
216return message.Response;
218throw _clientDiagnostics.CreateRequestFailedException(message.Response);
267switch (message.Response.Status)
272using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
274return Response.FromValue(value, message.Response);
277return Response.FromValue((ExpressRouteCrossConnectionPeeringData)null, message.Response);
279throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
306switch (message.Response.Status)
311using var document = JsonDocument.Parse(message.Response.ContentStream);
313return Response.FromValue(value, message.Response);
316return Response.FromValue((ExpressRouteCrossConnectionPeeringData)null, message.Response);
318throw _clientDiagnostics.CreateRequestFailedException(message.Response);
376switch (message.Response.Status)
380return message.Response;
382throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
414switch (message.Response.Status)
418return message.Response;
420throw _clientDiagnostics.CreateRequestFailedException(message.Response);
461switch (message.Response.Status)
466using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
468return Response.FromValue(value, message.Response);
471throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
498switch (message.Response.Status)
503using var document = JsonDocument.Parse(message.Response.ContentStream);
505return Response.FromValue(value, message.Response);
508throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ExpressRouteCrossConnectionsRestOperations.cs (74)
70switch (message.Response.Status)
75using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
77return Response.FromValue(value, message.Response);
80throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
90switch (message.Response.Status)
95using var document = JsonDocument.Parse(message.Response.ContentStream);
97return Response.FromValue(value, message.Response);
100throw _clientDiagnostics.CreateRequestFailedException(message.Response);
136switch (message.Response.Status)
141using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
143return Response.FromValue(value, message.Response);
146throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
163switch (message.Response.Status)
168using var document = JsonDocument.Parse(message.Response.ContentStream);
170return Response.FromValue(value, message.Response);
173throw _clientDiagnostics.CreateRequestFailedException(message.Response);
215switch (message.Response.Status)
220using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
222return Response.FromValue(value, message.Response);
225return Response.FromValue((ExpressRouteCrossConnectionData)null, message.Response);
227throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
249switch (message.Response.Status)
254using var document = JsonDocument.Parse(message.Response.ContentStream);
256return Response.FromValue(value, message.Response);
259return Response.FromValue((ExpressRouteCrossConnectionData)null, message.Response);
261throw _clientDiagnostics.CreateRequestFailedException(message.Response);
312switch (message.Response.Status)
315return message.Response;
317throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
344switch (message.Response.Status)
347return message.Response;
349throw _clientDiagnostics.CreateRequestFailedException(message.Response);
400switch (message.Response.Status)
405using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
407return Response.FromValue(value, message.Response);
410throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
437switch (message.Response.Status)
442using var document = JsonDocument.Parse(message.Response.ContentStream);
444return Response.FromValue(value, message.Response);
447throw _clientDiagnostics.CreateRequestFailedException(message.Response);
503switch (message.Response.Status)
507return message.Response;
509throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
541switch (message.Response.Status)
545return message.Response;
547throw _clientDiagnostics.CreateRequestFailedException(message.Response);
603switch (message.Response.Status)
607return message.Response;
609throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
641switch (message.Response.Status)
645return message.Response;
647throw _clientDiagnostics.CreateRequestFailedException(message.Response);
703switch (message.Response.Status)
707return message.Response;
709throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
741switch (message.Response.Status)
745return message.Response;
747throw _clientDiagnostics.CreateRequestFailedException(message.Response);
778switch (message.Response.Status)
783using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
785return Response.FromValue(value, message.Response);
788throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
805switch (message.Response.Status)
810using var document = JsonDocument.Parse(message.Response.ContentStream);
812return Response.FromValue(value, message.Response);
815throw _clientDiagnostics.CreateRequestFailedException(message.Response);
851switch (message.Response.Status)
856using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
858return Response.FromValue(value, message.Response);
861throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
883switch (message.Response.Status)
888using var document = JsonDocument.Parse(message.Response.ContentStream);
890return Response.FromValue(value, message.Response);
893throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ExpressRouteGatewaysRestOperations.cs (44)
70switch (message.Response.Status)
75using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
77return Response.FromValue(value, message.Response);
80throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
90switch (message.Response.Status)
95using var document = JsonDocument.Parse(message.Response.ContentStream);
97return Response.FromValue(value, message.Response);
100throw _clientDiagnostics.CreateRequestFailedException(message.Response);
136switch (message.Response.Status)
141using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
143return Response.FromValue(value, message.Response);
146throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
163switch (message.Response.Status)
168using var document = JsonDocument.Parse(message.Response.ContentStream);
170return Response.FromValue(value, message.Response);
173throw _clientDiagnostics.CreateRequestFailedException(message.Response);
224switch (message.Response.Status)
228return message.Response;
230throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
257switch (message.Response.Status)
261return message.Response;
263throw _clientDiagnostics.CreateRequestFailedException(message.Response);
314switch (message.Response.Status)
318return message.Response;
320throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
347switch (message.Response.Status)
351return message.Response;
353throw _clientDiagnostics.CreateRequestFailedException(message.Response);
395switch (message.Response.Status)
400using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
402return Response.FromValue(value, message.Response);
405return Response.FromValue((ExpressRouteGatewayData)null, message.Response);
407throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
429switch (message.Response.Status)
434using var document = JsonDocument.Parse(message.Response.ContentStream);
436return Response.FromValue(value, message.Response);
439return Response.FromValue((ExpressRouteGatewayData)null, message.Response);
441throw _clientDiagnostics.CreateRequestFailedException(message.Response);
483switch (message.Response.Status)
488return message.Response;
490throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
512switch (message.Response.Status)
517return message.Response;
519throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ExpressRouteLinksRestOperations.cs (24)
92switch (message.Response.Status)
97using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
99return Response.FromValue(value, message.Response);
102throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
129switch (message.Response.Status)
134using var document = JsonDocument.Parse(message.Response.ContentStream);
136return Response.FromValue(value, message.Response);
139throw _clientDiagnostics.CreateRequestFailedException(message.Response);
182switch (message.Response.Status)
187using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
189return Response.FromValue(value, message.Response);
192throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
214switch (message.Response.Status)
219using var document = JsonDocument.Parse(message.Response.ContentStream);
221return Response.FromValue(value, message.Response);
224throw _clientDiagnostics.CreateRequestFailedException(message.Response);
265switch (message.Response.Status)
270using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
272return Response.FromValue(value, message.Response);
275throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
302switch (message.Response.Status)
307using var document = JsonDocument.Parse(message.Response.ContentStream);
309return Response.FromValue(value, message.Response);
312throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ExpressRoutePortsLocationsRestOperations.cs (24)
70switch (message.Response.Status)
75using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
77return Response.FromValue(value, message.Response);
80throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
90switch (message.Response.Status)
95using var document = JsonDocument.Parse(message.Response.ContentStream);
97return Response.FromValue(value, message.Response);
100throw _clientDiagnostics.CreateRequestFailedException(message.Response);
135switch (message.Response.Status)
140using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
142return Response.FromValue(value, message.Response);
145throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
162switch (message.Response.Status)
167using var document = JsonDocument.Parse(message.Response.ContentStream);
169return Response.FromValue(value, message.Response);
172throw _clientDiagnostics.CreateRequestFailedException(message.Response);
203switch (message.Response.Status)
208using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
210return Response.FromValue(value, message.Response);
213throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
230switch (message.Response.Status)
235using var document = JsonDocument.Parse(message.Response.ContentStream);
237return Response.FromValue(value, message.Response);
240throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ExpressRoutePortsRestOperations.cs (70)
85switch (message.Response.Status)
90return message.Response;
92throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
114switch (message.Response.Status)
119return message.Response;
121throw _clientDiagnostics.CreateRequestFailedException(message.Response);
163switch (message.Response.Status)
168using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
170return Response.FromValue(value, message.Response);
173return Response.FromValue((ExpressRoutePortData)null, message.Response);
175throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
197switch (message.Response.Status)
202using var document = JsonDocument.Parse(message.Response.ContentStream);
204return Response.FromValue(value, message.Response);
207return Response.FromValue((ExpressRoutePortData)null, message.Response);
209throw _clientDiagnostics.CreateRequestFailedException(message.Response);
260switch (message.Response.Status)
264return message.Response;
266throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
293switch (message.Response.Status)
297return message.Response;
299throw _clientDiagnostics.CreateRequestFailedException(message.Response);
350switch (message.Response.Status)
355using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
357return Response.FromValue(value, message.Response);
360throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
387switch (message.Response.Status)
392using var document = JsonDocument.Parse(message.Response.ContentStream);
394return Response.FromValue(value, message.Response);
397throw _clientDiagnostics.CreateRequestFailedException(message.Response);
433switch (message.Response.Status)
438using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
440return Response.FromValue(value, message.Response);
443throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
460switch (message.Response.Status)
465using var document = JsonDocument.Parse(message.Response.ContentStream);
467return Response.FromValue(value, message.Response);
470throw _clientDiagnostics.CreateRequestFailedException(message.Response);
497switch (message.Response.Status)
502using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
504return Response.FromValue(value, message.Response);
507throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
517switch (message.Response.Status)
522using var document = JsonDocument.Parse(message.Response.ContentStream);
524return Response.FromValue(value, message.Response);
527throw _clientDiagnostics.CreateRequestFailedException(message.Response);
579switch (message.Response.Status)
584using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
586return Response.FromValue(value, message.Response);
589throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
616switch (message.Response.Status)
621using var document = JsonDocument.Parse(message.Response.ContentStream);
623return Response.FromValue(value, message.Response);
626throw _clientDiagnostics.CreateRequestFailedException(message.Response);
662switch (message.Response.Status)
667using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
669return Response.FromValue(value, message.Response);
672throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
694switch (message.Response.Status)
699using var document = JsonDocument.Parse(message.Response.ContentStream);
701return Response.FromValue(value, message.Response);
704throw _clientDiagnostics.CreateRequestFailedException(message.Response);
735switch (message.Response.Status)
740using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
742return Response.FromValue(value, message.Response);
745throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
762switch (message.Response.Status)
767using var document = JsonDocument.Parse(message.Response.ContentStream);
769return Response.FromValue(value, message.Response);
772throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\FirewallPoliciesRestOperations.cs (54)
85switch (message.Response.Status)
90return message.Response;
92throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
114switch (message.Response.Status)
119return message.Response;
121throw _clientDiagnostics.CreateRequestFailedException(message.Response);
168switch (message.Response.Status)
173using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
175return Response.FromValue(value, message.Response);
178return Response.FromValue((FirewallPolicyData)null, message.Response);
180throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
203switch (message.Response.Status)
208using var document = JsonDocument.Parse(message.Response.ContentStream);
210return Response.FromValue(value, message.Response);
213return Response.FromValue((FirewallPolicyData)null, message.Response);
215throw _clientDiagnostics.CreateRequestFailedException(message.Response);
266switch (message.Response.Status)
270return message.Response;
272throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
299switch (message.Response.Status)
303return message.Response;
305throw _clientDiagnostics.CreateRequestFailedException(message.Response);
341switch (message.Response.Status)
346using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
348return Response.FromValue(value, message.Response);
351throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
368switch (message.Response.Status)
373using var document = JsonDocument.Parse(message.Response.ContentStream);
375return Response.FromValue(value, message.Response);
378throw _clientDiagnostics.CreateRequestFailedException(message.Response);
405switch (message.Response.Status)
410using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
412return Response.FromValue(value, message.Response);
415throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
425switch (message.Response.Status)
430using var document = JsonDocument.Parse(message.Response.ContentStream);
432return Response.FromValue(value, message.Response);
435throw _clientDiagnostics.CreateRequestFailedException(message.Response);
471switch (message.Response.Status)
476using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
478return Response.FromValue(value, message.Response);
481throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
503switch (message.Response.Status)
508using var document = JsonDocument.Parse(message.Response.ContentStream);
510return Response.FromValue(value, message.Response);
513throw _clientDiagnostics.CreateRequestFailedException(message.Response);
544switch (message.Response.Status)
549using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
551return Response.FromValue(value, message.Response);
554throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
571switch (message.Response.Status)
576using var document = JsonDocument.Parse(message.Response.ContentStream);
578return Response.FromValue(value, message.Response);
581throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\FirewallPolicyRuleCollectionGroupsRestOperations.cs (38)
92switch (message.Response.Status)
97return message.Response;
99throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
126switch (message.Response.Status)
131return message.Response;
133throw _clientDiagnostics.CreateRequestFailedException(message.Response);
182switch (message.Response.Status)
187using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
189return Response.FromValue(value, message.Response);
192return Response.FromValue((FirewallPolicyRuleCollectionGroupData)null, message.Response);
194throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
221switch (message.Response.Status)
226using var document = JsonDocument.Parse(message.Response.ContentStream);
228return Response.FromValue(value, message.Response);
231return Response.FromValue((FirewallPolicyRuleCollectionGroupData)null, message.Response);
233throw _clientDiagnostics.CreateRequestFailedException(message.Response);
291switch (message.Response.Status)
295return message.Response;
297throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
329switch (message.Response.Status)
333return message.Response;
335throw _clientDiagnostics.CreateRequestFailedException(message.Response);
378switch (message.Response.Status)
383using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
385return Response.FromValue(value, message.Response);
388throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
410switch (message.Response.Status)
415using var document = JsonDocument.Parse(message.Response.ContentStream);
417return Response.FromValue(value, message.Response);
420throw _clientDiagnostics.CreateRequestFailedException(message.Response);
461switch (message.Response.Status)
466using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
468return Response.FromValue(value, message.Response);
471throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
498switch (message.Response.Status)
503using var document = JsonDocument.Parse(message.Response.ContentStream);
505return Response.FromValue(value, message.Response);
508throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\FlowLogsRestOperations.cs (46)
101switch (message.Response.Status)
105return message.Response;
107throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
139switch (message.Response.Status)
143return message.Response;
145throw _clientDiagnostics.CreateRequestFailedException(message.Response);
203switch (message.Response.Status)
208using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
210return Response.FromValue(value, message.Response);
213throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
245switch (message.Response.Status)
250using var document = JsonDocument.Parse(message.Response.ContentStream);
252return Response.FromValue(value, message.Response);
255throw _clientDiagnostics.CreateRequestFailedException(message.Response);
304switch (message.Response.Status)
309using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
311return Response.FromValue(value, message.Response);
314return Response.FromValue((FlowLogData)null, message.Response);
316throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
343switch (message.Response.Status)
348using var document = JsonDocument.Parse(message.Response.ContentStream);
350return Response.FromValue(value, message.Response);
353return Response.FromValue((FlowLogData)null, message.Response);
355throw _clientDiagnostics.CreateRequestFailedException(message.Response);
404switch (message.Response.Status)
408return message.Response;
410throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
437switch (message.Response.Status)
441return message.Response;
443throw _clientDiagnostics.CreateRequestFailedException(message.Response);
486switch (message.Response.Status)
491using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
493return Response.FromValue(value, message.Response);
496throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
518switch (message.Response.Status)
523using var document = JsonDocument.Parse(message.Response.ContentStream);
525return Response.FromValue(value, message.Response);
528throw _clientDiagnostics.CreateRequestFailedException(message.Response);
569switch (message.Response.Status)
574using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
576return Response.FromValue(value, message.Response);
579throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
606switch (message.Response.Status)
611using var document = JsonDocument.Parse(message.Response.ContentStream);
613return Response.FromValue(value, message.Response);
616throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\HubRouteTablesRestOperations.cs (38)
101switch (message.Response.Status)
105return message.Response;
107throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
139switch (message.Response.Status)
143return message.Response;
145throw _clientDiagnostics.CreateRequestFailedException(message.Response);
194switch (message.Response.Status)
199using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
201return Response.FromValue(value, message.Response);
204return Response.FromValue((HubRouteTableData)null, message.Response);
206throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
233switch (message.Response.Status)
238using var document = JsonDocument.Parse(message.Response.ContentStream);
240return Response.FromValue(value, message.Response);
243return Response.FromValue((HubRouteTableData)null, message.Response);
245throw _clientDiagnostics.CreateRequestFailedException(message.Response);
294switch (message.Response.Status)
299return message.Response;
301throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
328switch (message.Response.Status)
333return message.Response;
335throw _clientDiagnostics.CreateRequestFailedException(message.Response);
378switch (message.Response.Status)
383using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
385return Response.FromValue(value, message.Response);
388throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
410switch (message.Response.Status)
415using var document = JsonDocument.Parse(message.Response.ContentStream);
417return Response.FromValue(value, message.Response);
420throw _clientDiagnostics.CreateRequestFailedException(message.Response);
461switch (message.Response.Status)
466using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
468return Response.FromValue(value, message.Response);
471throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
498switch (message.Response.Status)
503using var document = JsonDocument.Parse(message.Response.ContentStream);
505return Response.FromValue(value, message.Response);
508throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\HubVirtualNetworkConnectionsRestOperations.cs (38)
101switch (message.Response.Status)
105return message.Response;
107throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
139switch (message.Response.Status)
143return message.Response;
145throw _clientDiagnostics.CreateRequestFailedException(message.Response);
194switch (message.Response.Status)
199return message.Response;
201throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
228switch (message.Response.Status)
233return message.Response;
235throw _clientDiagnostics.CreateRequestFailedException(message.Response);
284switch (message.Response.Status)
289using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
291return Response.FromValue(value, message.Response);
294return Response.FromValue((HubVirtualNetworkConnectionData)null, message.Response);
296throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
323switch (message.Response.Status)
328using var document = JsonDocument.Parse(message.Response.ContentStream);
330return Response.FromValue(value, message.Response);
333return Response.FromValue((HubVirtualNetworkConnectionData)null, message.Response);
335throw _clientDiagnostics.CreateRequestFailedException(message.Response);
378switch (message.Response.Status)
383using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
385return Response.FromValue(value, message.Response);
388throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
410switch (message.Response.Status)
415using var document = JsonDocument.Parse(message.Response.ContentStream);
417return Response.FromValue(value, message.Response);
420throw _clientDiagnostics.CreateRequestFailedException(message.Response);
461switch (message.Response.Status)
466using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
468return Response.FromValue(value, message.Response);
471throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
498switch (message.Response.Status)
503using var document = JsonDocument.Parse(message.Response.ContentStream);
505return Response.FromValue(value, message.Response);
508throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\InboundNatRulesRestOperations.cs (38)
86switch (message.Response.Status)
91using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
93return Response.FromValue(value, message.Response);
96throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
118switch (message.Response.Status)
123using var document = JsonDocument.Parse(message.Response.ContentStream);
125return Response.FromValue(value, message.Response);
128throw _clientDiagnostics.CreateRequestFailedException(message.Response);
177switch (message.Response.Status)
182return message.Response;
184throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
211switch (message.Response.Status)
216return message.Response;
218throw _clientDiagnostics.CreateRequestFailedException(message.Response);
272switch (message.Response.Status)
277using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
279return Response.FromValue(value, message.Response);
282return Response.FromValue((InboundNatRuleData)null, message.Response);
284throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
312switch (message.Response.Status)
317using var document = JsonDocument.Parse(message.Response.ContentStream);
319return Response.FromValue(value, message.Response);
322return Response.FromValue((InboundNatRuleData)null, message.Response);
324throw _clientDiagnostics.CreateRequestFailedException(message.Response);
382switch (message.Response.Status)
386return message.Response;
388throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
420switch (message.Response.Status)
424return message.Response;
426throw _clientDiagnostics.CreateRequestFailedException(message.Response);
467switch (message.Response.Status)
472using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
474return Response.FromValue(value, message.Response);
477throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
504switch (message.Response.Status)
509using var document = JsonDocument.Parse(message.Response.ContentStream);
511return Response.FromValue(value, message.Response);
514throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\IpAllocationsRestOperations.cs (62)
85switch (message.Response.Status)
90return message.Response;
92throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
114switch (message.Response.Status)
119return message.Response;
121throw _clientDiagnostics.CreateRequestFailedException(message.Response);
168switch (message.Response.Status)
173using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
175return Response.FromValue(value, message.Response);
178return Response.FromValue((IpAllocationData)null, message.Response);
180throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
203switch (message.Response.Status)
208using var document = JsonDocument.Parse(message.Response.ContentStream);
210return Response.FromValue(value, message.Response);
213return Response.FromValue((IpAllocationData)null, message.Response);
215throw _clientDiagnostics.CreateRequestFailedException(message.Response);
266switch (message.Response.Status)
270return message.Response;
272throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
299switch (message.Response.Status)
303return message.Response;
305throw _clientDiagnostics.CreateRequestFailedException(message.Response);
356switch (message.Response.Status)
361using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
363return Response.FromValue(value, message.Response);
366throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
393switch (message.Response.Status)
398using var document = JsonDocument.Parse(message.Response.ContentStream);
400return Response.FromValue(value, message.Response);
403throw _clientDiagnostics.CreateRequestFailedException(message.Response);
430switch (message.Response.Status)
435using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
437return Response.FromValue(value, message.Response);
440throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
450switch (message.Response.Status)
455using var document = JsonDocument.Parse(message.Response.ContentStream);
457return Response.FromValue(value, message.Response);
460throw _clientDiagnostics.CreateRequestFailedException(message.Response);
496switch (message.Response.Status)
501using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
503return Response.FromValue(value, message.Response);
506throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
523switch (message.Response.Status)
528using var document = JsonDocument.Parse(message.Response.ContentStream);
530return Response.FromValue(value, message.Response);
533throw _clientDiagnostics.CreateRequestFailedException(message.Response);
564switch (message.Response.Status)
569using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
571return Response.FromValue(value, message.Response);
574throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
591switch (message.Response.Status)
596using var document = JsonDocument.Parse(message.Response.ContentStream);
598return Response.FromValue(value, message.Response);
601throw _clientDiagnostics.CreateRequestFailedException(message.Response);
637switch (message.Response.Status)
642using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
644return Response.FromValue(value, message.Response);
647throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
669switch (message.Response.Status)
674using var document = JsonDocument.Parse(message.Response.ContentStream);
676return Response.FromValue(value, message.Response);
679throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\IpGroupsRestOperations.cs (62)
90switch (message.Response.Status)
95using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
97return Response.FromValue(value, message.Response);
100return Response.FromValue((IpGroupData)null, message.Response);
102throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
125switch (message.Response.Status)
130using var document = JsonDocument.Parse(message.Response.ContentStream);
132return Response.FromValue(value, message.Response);
135return Response.FromValue((IpGroupData)null, message.Response);
137throw _clientDiagnostics.CreateRequestFailedException(message.Response);
188switch (message.Response.Status)
192return message.Response;
194throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
221switch (message.Response.Status)
225return message.Response;
227throw _clientDiagnostics.CreateRequestFailedException(message.Response);
278switch (message.Response.Status)
283using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
285return Response.FromValue(value, message.Response);
288throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
315switch (message.Response.Status)
320using var document = JsonDocument.Parse(message.Response.ContentStream);
322return Response.FromValue(value, message.Response);
325throw _clientDiagnostics.CreateRequestFailedException(message.Response);
367switch (message.Response.Status)
372return message.Response;
374throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
396switch (message.Response.Status)
401return message.Response;
403throw _clientDiagnostics.CreateRequestFailedException(message.Response);
439switch (message.Response.Status)
444using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
446return Response.FromValue(value, message.Response);
449throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
466switch (message.Response.Status)
471using var document = JsonDocument.Parse(message.Response.ContentStream);
473return Response.FromValue(value, message.Response);
476throw _clientDiagnostics.CreateRequestFailedException(message.Response);
503switch (message.Response.Status)
508using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
510return Response.FromValue(value, message.Response);
513throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
523switch (message.Response.Status)
528using var document = JsonDocument.Parse(message.Response.ContentStream);
530return Response.FromValue(value, message.Response);
533throw _clientDiagnostics.CreateRequestFailedException(message.Response);
569switch (message.Response.Status)
574using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
576return Response.FromValue(value, message.Response);
579throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
601switch (message.Response.Status)
606using var document = JsonDocument.Parse(message.Response.ContentStream);
608return Response.FromValue(value, message.Response);
611throw _clientDiagnostics.CreateRequestFailedException(message.Response);
642switch (message.Response.Status)
647using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
649return Response.FromValue(value, message.Response);
652throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
669switch (message.Response.Status)
674using var document = JsonDocument.Parse(message.Response.ContentStream);
676return Response.FromValue(value, message.Response);
679throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\LoadBalancerBackendAddressPoolsRestOperations.cs (38)
86switch (message.Response.Status)
91using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
93return Response.FromValue(value, message.Response);
96throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
118switch (message.Response.Status)
123using var document = JsonDocument.Parse(message.Response.ContentStream);
125return Response.FromValue(value, message.Response);
128throw _clientDiagnostics.CreateRequestFailedException(message.Response);
177switch (message.Response.Status)
182using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
184return Response.FromValue(value, message.Response);
187return Response.FromValue((BackendAddressPoolData)null, message.Response);
189throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
216switch (message.Response.Status)
221using var document = JsonDocument.Parse(message.Response.ContentStream);
223return Response.FromValue(value, message.Response);
226return Response.FromValue((BackendAddressPoolData)null, message.Response);
228throw _clientDiagnostics.CreateRequestFailedException(message.Response);
286switch (message.Response.Status)
290return message.Response;
292throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
324switch (message.Response.Status)
328return message.Response;
330throw _clientDiagnostics.CreateRequestFailedException(message.Response);
379switch (message.Response.Status)
384return message.Response;
386throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
413switch (message.Response.Status)
418return message.Response;
420throw _clientDiagnostics.CreateRequestFailedException(message.Response);
461switch (message.Response.Status)
466using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
468return Response.FromValue(value, message.Response);
471throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
498switch (message.Response.Status)
503using var document = JsonDocument.Parse(message.Response.ContentStream);
505return Response.FromValue(value, message.Response);
508throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\LoadBalancerFrontendIPConfigurationsRestOperations.cs (24)
86switch (message.Response.Status)
91using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
93return Response.FromValue(value, message.Response);
96throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
118switch (message.Response.Status)
123using var document = JsonDocument.Parse(message.Response.ContentStream);
125return Response.FromValue(value, message.Response);
128throw _clientDiagnostics.CreateRequestFailedException(message.Response);
177switch (message.Response.Status)
182using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
184return Response.FromValue(value, message.Response);
187throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
214switch (message.Response.Status)
219using var document = JsonDocument.Parse(message.Response.ContentStream);
221return Response.FromValue(value, message.Response);
224throw _clientDiagnostics.CreateRequestFailedException(message.Response);
265switch (message.Response.Status)
270using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
272return Response.FromValue(value, message.Response);
275throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
302switch (message.Response.Status)
307using var document = JsonDocument.Parse(message.Response.ContentStream);
309return Response.FromValue(value, message.Response);
312throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\LoadBalancerLoadBalancingRulesRestOperations.cs (24)
86switch (message.Response.Status)
91using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
93return Response.FromValue(value, message.Response);
96throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
118switch (message.Response.Status)
123using var document = JsonDocument.Parse(message.Response.ContentStream);
125return Response.FromValue(value, message.Response);
128throw _clientDiagnostics.CreateRequestFailedException(message.Response);
177switch (message.Response.Status)
182using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
184return Response.FromValue(value, message.Response);
187throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
214switch (message.Response.Status)
219using var document = JsonDocument.Parse(message.Response.ContentStream);
221return Response.FromValue(value, message.Response);
224throw _clientDiagnostics.CreateRequestFailedException(message.Response);
265switch (message.Response.Status)
270using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
272return Response.FromValue(value, message.Response);
275throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
302switch (message.Response.Status)
307using var document = JsonDocument.Parse(message.Response.ContentStream);
309return Response.FromValue(value, message.Response);
312throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\LoadBalancerOutboundRulesRestOperations.cs (24)
86switch (message.Response.Status)
91using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
93return Response.FromValue(value, message.Response);
96throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
118switch (message.Response.Status)
123using var document = JsonDocument.Parse(message.Response.ContentStream);
125return Response.FromValue(value, message.Response);
128throw _clientDiagnostics.CreateRequestFailedException(message.Response);
177switch (message.Response.Status)
182using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
184return Response.FromValue(value, message.Response);
187throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
214switch (message.Response.Status)
219using var document = JsonDocument.Parse(message.Response.ContentStream);
221return Response.FromValue(value, message.Response);
224throw _clientDiagnostics.CreateRequestFailedException(message.Response);
265switch (message.Response.Status)
270using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
272return Response.FromValue(value, message.Response);
275throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
302switch (message.Response.Status)
307using var document = JsonDocument.Parse(message.Response.ContentStream);
309return Response.FromValue(value, message.Response);
312throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\LoadBalancerProbesRestOperations.cs (24)
86switch (message.Response.Status)
91using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
93return Response.FromValue(value, message.Response);
96throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
118switch (message.Response.Status)
123using var document = JsonDocument.Parse(message.Response.ContentStream);
125return Response.FromValue(value, message.Response);
128throw _clientDiagnostics.CreateRequestFailedException(message.Response);
177switch (message.Response.Status)
182using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
184return Response.FromValue(value, message.Response);
187throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
214switch (message.Response.Status)
219using var document = JsonDocument.Parse(message.Response.ContentStream);
221return Response.FromValue(value, message.Response);
224throw _clientDiagnostics.CreateRequestFailedException(message.Response);
265switch (message.Response.Status)
270using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
272return Response.FromValue(value, message.Response);
275throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
302switch (message.Response.Status)
307using var document = JsonDocument.Parse(message.Response.ContentStream);
309return Response.FromValue(value, message.Response);
312throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\LoadBalancersRestOperations.cs (68)
85switch (message.Response.Status)
90return message.Response;
92throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
114switch (message.Response.Status)
119return message.Response;
121throw _clientDiagnostics.CreateRequestFailedException(message.Response);
168switch (message.Response.Status)
173using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
175return Response.FromValue(value, message.Response);
178return Response.FromValue((LoadBalancerData)null, message.Response);
180throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
203switch (message.Response.Status)
208using var document = JsonDocument.Parse(message.Response.ContentStream);
210return Response.FromValue(value, message.Response);
213return Response.FromValue((LoadBalancerData)null, message.Response);
215throw _clientDiagnostics.CreateRequestFailedException(message.Response);
266switch (message.Response.Status)
270return message.Response;
272throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
299switch (message.Response.Status)
303return message.Response;
305throw _clientDiagnostics.CreateRequestFailedException(message.Response);
356switch (message.Response.Status)
361using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
363return Response.FromValue(value, message.Response);
366throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
393switch (message.Response.Status)
398using var document = JsonDocument.Parse(message.Response.ContentStream);
400return Response.FromValue(value, message.Response);
403throw _clientDiagnostics.CreateRequestFailedException(message.Response);
430switch (message.Response.Status)
435using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
437return Response.FromValue(value, message.Response);
440throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
450switch (message.Response.Status)
455using var document = JsonDocument.Parse(message.Response.ContentStream);
457return Response.FromValue(value, message.Response);
460throw _clientDiagnostics.CreateRequestFailedException(message.Response);
496switch (message.Response.Status)
501using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
503return Response.FromValue(value, message.Response);
506throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
523switch (message.Response.Status)
528using var document = JsonDocument.Parse(message.Response.ContentStream);
530return Response.FromValue(value, message.Response);
533throw _clientDiagnostics.CreateRequestFailedException(message.Response);
578switch (message.Response.Status)
582return message.Response;
584throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
606switch (message.Response.Status)
610return message.Response;
612throw _clientDiagnostics.CreateRequestFailedException(message.Response);
643switch (message.Response.Status)
648using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
650return Response.FromValue(value, message.Response);
653throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
670switch (message.Response.Status)
675using var document = JsonDocument.Parse(message.Response.ContentStream);
677return Response.FromValue(value, message.Response);
680throw _clientDiagnostics.CreateRequestFailedException(message.Response);
716switch (message.Response.Status)
721using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
723return Response.FromValue(value, message.Response);
726throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
748switch (message.Response.Status)
753using var document = JsonDocument.Parse(message.Response.ContentStream);
755return Response.FromValue(value, message.Response);
758throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\LocalNetworkGatewaysRestOperations.cs (46)
94switch (message.Response.Status)
98return message.Response;
100throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
127switch (message.Response.Status)
131return message.Response;
133throw _clientDiagnostics.CreateRequestFailedException(message.Response);
175switch (message.Response.Status)
180using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
182return Response.FromValue(value, message.Response);
185return Response.FromValue((LocalNetworkGatewayData)null, message.Response);
187throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
209switch (message.Response.Status)
214using var document = JsonDocument.Parse(message.Response.ContentStream);
216return Response.FromValue(value, message.Response);
219return Response.FromValue((LocalNetworkGatewayData)null, message.Response);
221throw _clientDiagnostics.CreateRequestFailedException(message.Response);
263switch (message.Response.Status)
268return message.Response;
270throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
292switch (message.Response.Status)
297return message.Response;
299throw _clientDiagnostics.CreateRequestFailedException(message.Response);
350switch (message.Response.Status)
355using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
357return Response.FromValue(value, message.Response);
360throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
387switch (message.Response.Status)
392using var document = JsonDocument.Parse(message.Response.ContentStream);
394return Response.FromValue(value, message.Response);
397throw _clientDiagnostics.CreateRequestFailedException(message.Response);
433switch (message.Response.Status)
438using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
440return Response.FromValue(value, message.Response);
443throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
460switch (message.Response.Status)
465using var document = JsonDocument.Parse(message.Response.ContentStream);
467return Response.FromValue(value, message.Response);
470throw _clientDiagnostics.CreateRequestFailedException(message.Response);
506switch (message.Response.Status)
511using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
513return Response.FromValue(value, message.Response);
516throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
538switch (message.Response.Status)
543using var document = JsonDocument.Parse(message.Response.ContentStream);
545return Response.FromValue(value, message.Response);
548throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\NatGatewaysRestOperations.cs (62)
85switch (message.Response.Status)
90return message.Response;
92throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
114switch (message.Response.Status)
119return message.Response;
121throw _clientDiagnostics.CreateRequestFailedException(message.Response);
168switch (message.Response.Status)
173using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
175return Response.FromValue(value, message.Response);
178return Response.FromValue((NatGatewayData)null, message.Response);
180throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
203switch (message.Response.Status)
208using var document = JsonDocument.Parse(message.Response.ContentStream);
210return Response.FromValue(value, message.Response);
213return Response.FromValue((NatGatewayData)null, message.Response);
215throw _clientDiagnostics.CreateRequestFailedException(message.Response);
266switch (message.Response.Status)
271return message.Response;
273throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
300switch (message.Response.Status)
305return message.Response;
307throw _clientDiagnostics.CreateRequestFailedException(message.Response);
358switch (message.Response.Status)
363using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
365return Response.FromValue(value, message.Response);
368throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
395switch (message.Response.Status)
400using var document = JsonDocument.Parse(message.Response.ContentStream);
402return Response.FromValue(value, message.Response);
405throw _clientDiagnostics.CreateRequestFailedException(message.Response);
432switch (message.Response.Status)
437using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
439return Response.FromValue(value, message.Response);
442throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
452switch (message.Response.Status)
457using var document = JsonDocument.Parse(message.Response.ContentStream);
459return Response.FromValue(value, message.Response);
462throw _clientDiagnostics.CreateRequestFailedException(message.Response);
498switch (message.Response.Status)
503using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
505return Response.FromValue(value, message.Response);
508throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
525switch (message.Response.Status)
530using var document = JsonDocument.Parse(message.Response.ContentStream);
532return Response.FromValue(value, message.Response);
535throw _clientDiagnostics.CreateRequestFailedException(message.Response);
566switch (message.Response.Status)
571using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
573return Response.FromValue(value, message.Response);
576throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
593switch (message.Response.Status)
598using var document = JsonDocument.Parse(message.Response.ContentStream);
600return Response.FromValue(value, message.Response);
603throw _clientDiagnostics.CreateRequestFailedException(message.Response);
639switch (message.Response.Status)
644using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
646return Response.FromValue(value, message.Response);
649throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
671switch (message.Response.Status)
676using var document = JsonDocument.Parse(message.Response.ContentStream);
678return Response.FromValue(value, message.Response);
681throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\NatRulesRestOperations.cs (38)
92switch (message.Response.Status)
97using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
99return Response.FromValue(value, message.Response);
102return Response.FromValue((VpnGatewayNatRuleData)null, message.Response);
104throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
131switch (message.Response.Status)
136using var document = JsonDocument.Parse(message.Response.ContentStream);
138return Response.FromValue(value, message.Response);
141return Response.FromValue((VpnGatewayNatRuleData)null, message.Response);
143throw _clientDiagnostics.CreateRequestFailedException(message.Response);
201switch (message.Response.Status)
205return message.Response;
207throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
239switch (message.Response.Status)
243return message.Response;
245throw _clientDiagnostics.CreateRequestFailedException(message.Response);
294switch (message.Response.Status)
299return message.Response;
301throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
328switch (message.Response.Status)
333return message.Response;
335throw _clientDiagnostics.CreateRequestFailedException(message.Response);
378switch (message.Response.Status)
383using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
385return Response.FromValue(value, message.Response);
388throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
410switch (message.Response.Status)
415using var document = JsonDocument.Parse(message.Response.ContentStream);
417return Response.FromValue(value, message.Response);
420throw _clientDiagnostics.CreateRequestFailedException(message.Response);
461switch (message.Response.Status)
466using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
468return Response.FromValue(value, message.Response);
471throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
498switch (message.Response.Status)
503using var document = JsonDocument.Parse(message.Response.ContentStream);
505return Response.FromValue(value, message.Response);
508throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\NetworkInterfaceIPConfigurationsRestOperations.cs (24)
86switch (message.Response.Status)
91using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
93return Response.FromValue(value, message.Response);
96throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
118switch (message.Response.Status)
123using var document = JsonDocument.Parse(message.Response.ContentStream);
125return Response.FromValue(value, message.Response);
128throw _clientDiagnostics.CreateRequestFailedException(message.Response);
177switch (message.Response.Status)
182using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
184return Response.FromValue(value, message.Response);
187throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
214switch (message.Response.Status)
219using var document = JsonDocument.Parse(message.Response.ContentStream);
221return Response.FromValue(value, message.Response);
224throw _clientDiagnostics.CreateRequestFailedException(message.Response);
265switch (message.Response.Status)
270using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
272return Response.FromValue(value, message.Response);
275throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
302switch (message.Response.Status)
307using var document = JsonDocument.Parse(message.Response.ContentStream);
309return Response.FromValue(value, message.Response);
312throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\NetworkInterfacesRestOperations.cs (74)
85switch (message.Response.Status)
90return message.Response;
92throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
114switch (message.Response.Status)
119return message.Response;
121throw _clientDiagnostics.CreateRequestFailedException(message.Response);
168switch (message.Response.Status)
173using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
175return Response.FromValue(value, message.Response);
178return Response.FromValue((NetworkInterfaceData)null, message.Response);
180throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
203switch (message.Response.Status)
208using var document = JsonDocument.Parse(message.Response.ContentStream);
210return Response.FromValue(value, message.Response);
213return Response.FromValue((NetworkInterfaceData)null, message.Response);
215throw _clientDiagnostics.CreateRequestFailedException(message.Response);
266switch (message.Response.Status)
270return message.Response;
272throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
299switch (message.Response.Status)
303return message.Response;
305throw _clientDiagnostics.CreateRequestFailedException(message.Response);
356switch (message.Response.Status)
361using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
363return Response.FromValue(value, message.Response);
366throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
393switch (message.Response.Status)
398using var document = JsonDocument.Parse(message.Response.ContentStream);
400return Response.FromValue(value, message.Response);
403throw _clientDiagnostics.CreateRequestFailedException(message.Response);
430switch (message.Response.Status)
435using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
437return Response.FromValue(value, message.Response);
440throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
450switch (message.Response.Status)
455using var document = JsonDocument.Parse(message.Response.ContentStream);
457return Response.FromValue(value, message.Response);
460throw _clientDiagnostics.CreateRequestFailedException(message.Response);
496switch (message.Response.Status)
501using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
503return Response.FromValue(value, message.Response);
506throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
523switch (message.Response.Status)
528using var document = JsonDocument.Parse(message.Response.ContentStream);
530return Response.FromValue(value, message.Response);
533throw _clientDiagnostics.CreateRequestFailedException(message.Response);
576switch (message.Response.Status)
580return message.Response;
582throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
604switch (message.Response.Status)
608return message.Response;
610throw _clientDiagnostics.CreateRequestFailedException(message.Response);
653switch (message.Response.Status)
657return message.Response;
659throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
681switch (message.Response.Status)
685return message.Response;
687throw _clientDiagnostics.CreateRequestFailedException(message.Response);
718switch (message.Response.Status)
723using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
725return Response.FromValue(value, message.Response);
728throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
745switch (message.Response.Status)
750using var document = JsonDocument.Parse(message.Response.ContentStream);
752return Response.FromValue(value, message.Response);
755throw _clientDiagnostics.CreateRequestFailedException(message.Response);
791switch (message.Response.Status)
796using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
798return Response.FromValue(value, message.Response);
801throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
823switch (message.Response.Status)
828using var document = JsonDocument.Parse(message.Response.ContentStream);
830return Response.FromValue(value, message.Response);
833throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\NetworkInterfaceTapConfigurationsRestOperations.cs (38)
92switch (message.Response.Status)
97return message.Response;
99throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
126switch (message.Response.Status)
131return message.Response;
133throw _clientDiagnostics.CreateRequestFailedException(message.Response);
182switch (message.Response.Status)
187using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
189return Response.FromValue(value, message.Response);
192return Response.FromValue((NetworkInterfaceTapConfigurationData)null, message.Response);
194throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
221switch (message.Response.Status)
226using var document = JsonDocument.Parse(message.Response.ContentStream);
228return Response.FromValue(value, message.Response);
231return Response.FromValue((NetworkInterfaceTapConfigurationData)null, message.Response);
233throw _clientDiagnostics.CreateRequestFailedException(message.Response);
291switch (message.Response.Status)
295return message.Response;
297throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
329switch (message.Response.Status)
333return message.Response;
335throw _clientDiagnostics.CreateRequestFailedException(message.Response);
378switch (message.Response.Status)
383using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
385return Response.FromValue(value, message.Response);
388throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
410switch (message.Response.Status)
415using var document = JsonDocument.Parse(message.Response.ContentStream);
417return Response.FromValue(value, message.Response);
420throw _clientDiagnostics.CreateRequestFailedException(message.Response);
461switch (message.Response.Status)
466using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
468return Response.FromValue(value, message.Response);
471throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
498switch (message.Response.Status)
503using var document = JsonDocument.Parse(message.Response.ContentStream);
505return Response.FromValue(value, message.Response);
508throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\NetworkProfilesRestOperations.cs (64)
85switch (message.Response.Status)
90return message.Response;
92throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
114switch (message.Response.Status)
119return message.Response;
121throw _clientDiagnostics.CreateRequestFailedException(message.Response);
168switch (message.Response.Status)
173using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
175return Response.FromValue(value, message.Response);
178return Response.FromValue((NetworkProfileData)null, message.Response);
180throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
203switch (message.Response.Status)
208using var document = JsonDocument.Parse(message.Response.ContentStream);
210return Response.FromValue(value, message.Response);
213return Response.FromValue((NetworkProfileData)null, message.Response);
215throw _clientDiagnostics.CreateRequestFailedException(message.Response);
266switch (message.Response.Status)
272using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
274return Response.FromValue(value, message.Response);
277throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
304switch (message.Response.Status)
310using var document = JsonDocument.Parse(message.Response.ContentStream);
312return Response.FromValue(value, message.Response);
315throw _clientDiagnostics.CreateRequestFailedException(message.Response);
366switch (message.Response.Status)
371using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
373return Response.FromValue(value, message.Response);
376throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
403switch (message.Response.Status)
408using var document = JsonDocument.Parse(message.Response.ContentStream);
410return Response.FromValue(value, message.Response);
413throw _clientDiagnostics.CreateRequestFailedException(message.Response);
440switch (message.Response.Status)
445using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
447return Response.FromValue(value, message.Response);
450throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
460switch (message.Response.Status)
465using var document = JsonDocument.Parse(message.Response.ContentStream);
467return Response.FromValue(value, message.Response);
470throw _clientDiagnostics.CreateRequestFailedException(message.Response);
506switch (message.Response.Status)
511using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
513return Response.FromValue(value, message.Response);
516throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
533switch (message.Response.Status)
538using var document = JsonDocument.Parse(message.Response.ContentStream);
540return Response.FromValue(value, message.Response);
543throw _clientDiagnostics.CreateRequestFailedException(message.Response);
574switch (message.Response.Status)
579using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
581return Response.FromValue(value, message.Response);
584throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
601switch (message.Response.Status)
606using var document = JsonDocument.Parse(message.Response.ContentStream);
608return Response.FromValue(value, message.Response);
611throw _clientDiagnostics.CreateRequestFailedException(message.Response);
647switch (message.Response.Status)
652using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
654return Response.FromValue(value, message.Response);
657throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
679switch (message.Response.Status)
684using var document = JsonDocument.Parse(message.Response.ContentStream);
686return Response.FromValue(value, message.Response);
689throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\NetworkSecurityGroupsRestOperations.cs (62)
85switch (message.Response.Status)
90return message.Response;
92throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
114switch (message.Response.Status)
119return message.Response;
121throw _clientDiagnostics.CreateRequestFailedException(message.Response);
168switch (message.Response.Status)
173using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
175return Response.FromValue(value, message.Response);
178return Response.FromValue((NetworkSecurityGroupData)null, message.Response);
180throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
203switch (message.Response.Status)
208using var document = JsonDocument.Parse(message.Response.ContentStream);
210return Response.FromValue(value, message.Response);
213return Response.FromValue((NetworkSecurityGroupData)null, message.Response);
215throw _clientDiagnostics.CreateRequestFailedException(message.Response);
266switch (message.Response.Status)
270return message.Response;
272throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
299switch (message.Response.Status)
303return message.Response;
305throw _clientDiagnostics.CreateRequestFailedException(message.Response);
356switch (message.Response.Status)
361using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
363return Response.FromValue(value, message.Response);
366throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
393switch (message.Response.Status)
398using var document = JsonDocument.Parse(message.Response.ContentStream);
400return Response.FromValue(value, message.Response);
403throw _clientDiagnostics.CreateRequestFailedException(message.Response);
430switch (message.Response.Status)
435using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
437return Response.FromValue(value, message.Response);
440throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
450switch (message.Response.Status)
455using var document = JsonDocument.Parse(message.Response.ContentStream);
457return Response.FromValue(value, message.Response);
460throw _clientDiagnostics.CreateRequestFailedException(message.Response);
496switch (message.Response.Status)
501using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
503return Response.FromValue(value, message.Response);
506throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
523switch (message.Response.Status)
528using var document = JsonDocument.Parse(message.Response.ContentStream);
530return Response.FromValue(value, message.Response);
533throw _clientDiagnostics.CreateRequestFailedException(message.Response);
564switch (message.Response.Status)
569using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
571return Response.FromValue(value, message.Response);
574throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
591switch (message.Response.Status)
596using var document = JsonDocument.Parse(message.Response.ContentStream);
598return Response.FromValue(value, message.Response);
601throw _clientDiagnostics.CreateRequestFailedException(message.Response);
637switch (message.Response.Status)
642using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
644return Response.FromValue(value, message.Response);
647throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
669switch (message.Response.Status)
674using var document = JsonDocument.Parse(message.Response.ContentStream);
676return Response.FromValue(value, message.Response);
679throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\NetworkVirtualAppliancesRestOperations.cs (62)
85switch (message.Response.Status)
90return message.Response;
92throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
114switch (message.Response.Status)
119return message.Response;
121throw _clientDiagnostics.CreateRequestFailedException(message.Response);
168switch (message.Response.Status)
173using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
175return Response.FromValue(value, message.Response);
178return Response.FromValue((NetworkVirtualApplianceData)null, message.Response);
180throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
203switch (message.Response.Status)
208using var document = JsonDocument.Parse(message.Response.ContentStream);
210return Response.FromValue(value, message.Response);
213return Response.FromValue((NetworkVirtualApplianceData)null, message.Response);
215throw _clientDiagnostics.CreateRequestFailedException(message.Response);
266switch (message.Response.Status)
271using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
273return Response.FromValue(value, message.Response);
276throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
303switch (message.Response.Status)
308using var document = JsonDocument.Parse(message.Response.ContentStream);
310return Response.FromValue(value, message.Response);
313throw _clientDiagnostics.CreateRequestFailedException(message.Response);
364switch (message.Response.Status)
368return message.Response;
370throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
397switch (message.Response.Status)
401return message.Response;
403throw _clientDiagnostics.CreateRequestFailedException(message.Response);
439switch (message.Response.Status)
444using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
446return Response.FromValue(value, message.Response);
449throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
466switch (message.Response.Status)
471using var document = JsonDocument.Parse(message.Response.ContentStream);
473return Response.FromValue(value, message.Response);
476throw _clientDiagnostics.CreateRequestFailedException(message.Response);
503switch (message.Response.Status)
508using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
510return Response.FromValue(value, message.Response);
513throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
523switch (message.Response.Status)
528using var document = JsonDocument.Parse(message.Response.ContentStream);
530return Response.FromValue(value, message.Response);
533throw _clientDiagnostics.CreateRequestFailedException(message.Response);
569switch (message.Response.Status)
574using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
576return Response.FromValue(value, message.Response);
579throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
601switch (message.Response.Status)
606using var document = JsonDocument.Parse(message.Response.ContentStream);
608return Response.FromValue(value, message.Response);
611throw _clientDiagnostics.CreateRequestFailedException(message.Response);
642switch (message.Response.Status)
647using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
649return Response.FromValue(value, message.Response);
652throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
669switch (message.Response.Status)
674using var document = JsonDocument.Parse(message.Response.ContentStream);
676return Response.FromValue(value, message.Response);
679throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\NetworkWatchersRestOperations.cs (122)
94switch (message.Response.Status)
100using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
102return Response.FromValue(value, message.Response);
105throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
132switch (message.Response.Status)
138using var document = JsonDocument.Parse(message.Response.ContentStream);
140return Response.FromValue(value, message.Response);
143throw _clientDiagnostics.CreateRequestFailedException(message.Response);
185switch (message.Response.Status)
190using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
192return Response.FromValue(value, message.Response);
195return Response.FromValue((NetworkWatcherData)null, message.Response);
197throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
219switch (message.Response.Status)
224using var document = JsonDocument.Parse(message.Response.ContentStream);
226return Response.FromValue(value, message.Response);
229return Response.FromValue((NetworkWatcherData)null, message.Response);
231throw _clientDiagnostics.CreateRequestFailedException(message.Response);
273switch (message.Response.Status)
277return message.Response;
279throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
301switch (message.Response.Status)
305return message.Response;
307throw _clientDiagnostics.CreateRequestFailedException(message.Response);
358switch (message.Response.Status)
363using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
365return Response.FromValue(value, message.Response);
368throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
395switch (message.Response.Status)
400using var document = JsonDocument.Parse(message.Response.ContentStream);
402return Response.FromValue(value, message.Response);
405throw _clientDiagnostics.CreateRequestFailedException(message.Response);
441switch (message.Response.Status)
446using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
448return Response.FromValue(value, message.Response);
451throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
468switch (message.Response.Status)
473using var document = JsonDocument.Parse(message.Response.ContentStream);
475return Response.FromValue(value, message.Response);
478throw _clientDiagnostics.CreateRequestFailedException(message.Response);
505switch (message.Response.Status)
510using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
512return Response.FromValue(value, message.Response);
515throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
525switch (message.Response.Status)
530using var document = JsonDocument.Parse(message.Response.ContentStream);
532return Response.FromValue(value, message.Response);
535throw _clientDiagnostics.CreateRequestFailedException(message.Response);
587switch (message.Response.Status)
592using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
594return Response.FromValue(value, message.Response);
597throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
624switch (message.Response.Status)
629using var document = JsonDocument.Parse(message.Response.ContentStream);
631return Response.FromValue(value, message.Response);
634throw _clientDiagnostics.CreateRequestFailedException(message.Response);
686switch (message.Response.Status)
690return message.Response;
692throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
719switch (message.Response.Status)
723return message.Response;
725throw _clientDiagnostics.CreateRequestFailedException(message.Response);
777switch (message.Response.Status)
781return message.Response;
783throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
810switch (message.Response.Status)
814return message.Response;
816throw _clientDiagnostics.CreateRequestFailedException(message.Response);
868switch (message.Response.Status)
872return message.Response;
874throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
901switch (message.Response.Status)
905return message.Response;
907throw _clientDiagnostics.CreateRequestFailedException(message.Response);
959switch (message.Response.Status)
963return message.Response;
965throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
992switch (message.Response.Status)
996return message.Response;
998throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1050switch (message.Response.Status)
1054return message.Response;
1056throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1083switch (message.Response.Status)
1087return message.Response;
1089throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1141switch (message.Response.Status)
1145return message.Response;
1147throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1174switch (message.Response.Status)
1178return message.Response;
1180throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1232switch (message.Response.Status)
1236return message.Response;
1238throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1265switch (message.Response.Status)
1269return message.Response;
1271throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1323switch (message.Response.Status)
1327return message.Response;
1329throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1356switch (message.Response.Status)
1360return message.Response;
1362throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1414switch (message.Response.Status)
1418return message.Response;
1420throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1447switch (message.Response.Status)
1451return message.Response;
1453throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1505switch (message.Response.Status)
1509return message.Response;
1511throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1538switch (message.Response.Status)
1542return message.Response;
1544throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1596switch (message.Response.Status)
1600return message.Response;
1602throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1629switch (message.Response.Status)
1633return message.Response;
1635throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\P2SVpnGatewaysRestOperations.cs (90)
85switch (message.Response.Status)
90using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
92return Response.FromValue(value, message.Response);
95return Response.FromValue((P2SVpnGatewayData)null, message.Response);
97throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
119switch (message.Response.Status)
124using var document = JsonDocument.Parse(message.Response.ContentStream);
126return Response.FromValue(value, message.Response);
129return Response.FromValue((P2SVpnGatewayData)null, message.Response);
131throw _clientDiagnostics.CreateRequestFailedException(message.Response);
182switch (message.Response.Status)
186return message.Response;
188throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
215switch (message.Response.Status)
219return message.Response;
221throw _clientDiagnostics.CreateRequestFailedException(message.Response);
272switch (message.Response.Status)
276return message.Response;
278throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
305switch (message.Response.Status)
309return message.Response;
311throw _clientDiagnostics.CreateRequestFailedException(message.Response);
353switch (message.Response.Status)
358return message.Response;
360throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
382switch (message.Response.Status)
387return message.Response;
389throw _clientDiagnostics.CreateRequestFailedException(message.Response);
425switch (message.Response.Status)
430using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
432return Response.FromValue(value, message.Response);
435throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
452switch (message.Response.Status)
457using var document = JsonDocument.Parse(message.Response.ContentStream);
459return Response.FromValue(value, message.Response);
462throw _clientDiagnostics.CreateRequestFailedException(message.Response);
489switch (message.Response.Status)
494using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
496return Response.FromValue(value, message.Response);
499throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
509switch (message.Response.Status)
514using var document = JsonDocument.Parse(message.Response.ContentStream);
516return Response.FromValue(value, message.Response);
519throw _clientDiagnostics.CreateRequestFailedException(message.Response);
562switch (message.Response.Status)
566return message.Response;
568throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
590switch (message.Response.Status)
594return message.Response;
596throw _clientDiagnostics.CreateRequestFailedException(message.Response);
648switch (message.Response.Status)
652return message.Response;
654throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
681switch (message.Response.Status)
685return message.Response;
687throw _clientDiagnostics.CreateRequestFailedException(message.Response);
730switch (message.Response.Status)
734return message.Response;
736throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
758switch (message.Response.Status)
762return message.Response;
764throw _clientDiagnostics.CreateRequestFailedException(message.Response);
816switch (message.Response.Status)
820return message.Response;
822throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
849switch (message.Response.Status)
853return message.Response;
855throw _clientDiagnostics.CreateRequestFailedException(message.Response);
907switch (message.Response.Status)
911return message.Response;
913throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
940switch (message.Response.Status)
944return message.Response;
946throw _clientDiagnostics.CreateRequestFailedException(message.Response);
982switch (message.Response.Status)
987using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
989return Response.FromValue(value, message.Response);
992throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1014switch (message.Response.Status)
1019using var document = JsonDocument.Parse(message.Response.ContentStream);
1021return Response.FromValue(value, message.Response);
1024throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1055switch (message.Response.Status)
1060using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1062return Response.FromValue(value, message.Response);
1065throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1082switch (message.Response.Status)
1087using var document = JsonDocument.Parse(message.Response.ContentStream);
1089return Response.FromValue(value, message.Response);
1092throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\PacketCapturesRestOperations.cs (42)
101switch (message.Response.Status)
104return message.Response;
106throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
138switch (message.Response.Status)
141return message.Response;
143throw _clientDiagnostics.CreateRequestFailedException(message.Response);
192switch (message.Response.Status)
197using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
199return Response.FromValue(value, message.Response);
202return Response.FromValue((PacketCaptureData)null, message.Response);
204throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
231switch (message.Response.Status)
236using var document = JsonDocument.Parse(message.Response.ContentStream);
238return Response.FromValue(value, message.Response);
241return Response.FromValue((PacketCaptureData)null, message.Response);
243throw _clientDiagnostics.CreateRequestFailedException(message.Response);
292switch (message.Response.Status)
296return message.Response;
298throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
325switch (message.Response.Status)
329return message.Response;
331throw _clientDiagnostics.CreateRequestFailedException(message.Response);
381switch (message.Response.Status)
385return message.Response;
387throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
414switch (message.Response.Status)
418return message.Response;
420throw _clientDiagnostics.CreateRequestFailedException(message.Response);
470switch (message.Response.Status)
474return message.Response;
476throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
503switch (message.Response.Status)
507return message.Response;
509throw _clientDiagnostics.CreateRequestFailedException(message.Response);
552switch (message.Response.Status)
557using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
559return Response.FromValue(value, message.Response);
562throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
584switch (message.Response.Status)
589using var document = JsonDocument.Parse(message.Response.ContentStream);
591return Response.FromValue(value, message.Response);
594throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\PeerExpressRouteCircuitConnectionsRestOperations.cs (24)
99switch (message.Response.Status)
104using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
106return Response.FromValue(value, message.Response);
109throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
141switch (message.Response.Status)
146using var document = JsonDocument.Parse(message.Response.ContentStream);
148return Response.FromValue(value, message.Response);
151throw _clientDiagnostics.CreateRequestFailedException(message.Response);
201switch (message.Response.Status)
206using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
208return Response.FromValue(value, message.Response);
211throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
238switch (message.Response.Status)
243using var document = JsonDocument.Parse(message.Response.ContentStream);
245return Response.FromValue(value, message.Response);
248throw _clientDiagnostics.CreateRequestFailedException(message.Response);
294switch (message.Response.Status)
299using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
301return Response.FromValue(value, message.Response);
304throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
336switch (message.Response.Status)
341using var document = JsonDocument.Parse(message.Response.ContentStream);
343return Response.FromValue(value, message.Response);
346throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\PrivateDnsZoneGroupsRestOperations.cs (38)
92switch (message.Response.Status)
97return message.Response;
99throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
126switch (message.Response.Status)
131return message.Response;
133throw _clientDiagnostics.CreateRequestFailedException(message.Response);
182switch (message.Response.Status)
187using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
189return Response.FromValue(value, message.Response);
192return Response.FromValue((PrivateDnsZoneGroupData)null, message.Response);
194throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
221switch (message.Response.Status)
226using var document = JsonDocument.Parse(message.Response.ContentStream);
228return Response.FromValue(value, message.Response);
231return Response.FromValue((PrivateDnsZoneGroupData)null, message.Response);
233throw _clientDiagnostics.CreateRequestFailedException(message.Response);
291switch (message.Response.Status)
295return message.Response;
297throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
329switch (message.Response.Status)
333return message.Response;
335throw _clientDiagnostics.CreateRequestFailedException(message.Response);
378switch (message.Response.Status)
383using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
385return Response.FromValue(value, message.Response);
388throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
410switch (message.Response.Status)
415using var document = JsonDocument.Parse(message.Response.ContentStream);
417return Response.FromValue(value, message.Response);
420throw _clientDiagnostics.CreateRequestFailedException(message.Response);
461switch (message.Response.Status)
466using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
468return Response.FromValue(value, message.Response);
471throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
498switch (message.Response.Status)
503using var document = JsonDocument.Parse(message.Response.ContentStream);
505return Response.FromValue(value, message.Response);
508throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\PrivateEndpointsRestOperations.cs (54)
85switch (message.Response.Status)
90return message.Response;
92throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
114switch (message.Response.Status)
119return message.Response;
121throw _clientDiagnostics.CreateRequestFailedException(message.Response);
168switch (message.Response.Status)
173using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
175return Response.FromValue(value, message.Response);
178return Response.FromValue((PrivateEndpointData)null, message.Response);
180throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
203switch (message.Response.Status)
208using var document = JsonDocument.Parse(message.Response.ContentStream);
210return Response.FromValue(value, message.Response);
213return Response.FromValue((PrivateEndpointData)null, message.Response);
215throw _clientDiagnostics.CreateRequestFailedException(message.Response);
266switch (message.Response.Status)
270return message.Response;
272throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
299switch (message.Response.Status)
303return message.Response;
305throw _clientDiagnostics.CreateRequestFailedException(message.Response);
341switch (message.Response.Status)
346using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
348return Response.FromValue(value, message.Response);
351throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
368switch (message.Response.Status)
373using var document = JsonDocument.Parse(message.Response.ContentStream);
375return Response.FromValue(value, message.Response);
378throw _clientDiagnostics.CreateRequestFailedException(message.Response);
405switch (message.Response.Status)
410using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
412return Response.FromValue(value, message.Response);
415throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
425switch (message.Response.Status)
430using var document = JsonDocument.Parse(message.Response.ContentStream);
432return Response.FromValue(value, message.Response);
435throw _clientDiagnostics.CreateRequestFailedException(message.Response);
471switch (message.Response.Status)
476using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
478return Response.FromValue(value, message.Response);
481throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
503switch (message.Response.Status)
508using var document = JsonDocument.Parse(message.Response.ContentStream);
510return Response.FromValue(value, message.Response);
513throw _clientDiagnostics.CreateRequestFailedException(message.Response);
544switch (message.Response.Status)
549using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
551return Response.FromValue(value, message.Response);
554throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
571switch (message.Response.Status)
576using var document = JsonDocument.Parse(message.Response.ContentStream);
578return Response.FromValue(value, message.Response);
581throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\PrivateLinkServicesRestOperations.cs (136)
85switch (message.Response.Status)
90return message.Response;
92throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
114switch (message.Response.Status)
119return message.Response;
121throw _clientDiagnostics.CreateRequestFailedException(message.Response);
168switch (message.Response.Status)
173using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
175return Response.FromValue(value, message.Response);
178return Response.FromValue((PrivateLinkServiceData)null, message.Response);
180throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
203switch (message.Response.Status)
208using var document = JsonDocument.Parse(message.Response.ContentStream);
210return Response.FromValue(value, message.Response);
213return Response.FromValue((PrivateLinkServiceData)null, message.Response);
215throw _clientDiagnostics.CreateRequestFailedException(message.Response);
266switch (message.Response.Status)
270return message.Response;
272throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
299switch (message.Response.Status)
303return message.Response;
305throw _clientDiagnostics.CreateRequestFailedException(message.Response);
341switch (message.Response.Status)
346using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
348return Response.FromValue(value, message.Response);
351throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
368switch (message.Response.Status)
373using var document = JsonDocument.Parse(message.Response.ContentStream);
375return Response.FromValue(value, message.Response);
378throw _clientDiagnostics.CreateRequestFailedException(message.Response);
405switch (message.Response.Status)
410using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
412return Response.FromValue(value, message.Response);
415throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
425switch (message.Response.Status)
430using var document = JsonDocument.Parse(message.Response.ContentStream);
432return Response.FromValue(value, message.Response);
435throw _clientDiagnostics.CreateRequestFailedException(message.Response);
489switch (message.Response.Status)
494using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
496return Response.FromValue(value, message.Response);
499throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
527switch (message.Response.Status)
532using var document = JsonDocument.Parse(message.Response.ContentStream);
534return Response.FromValue(value, message.Response);
537throw _clientDiagnostics.CreateRequestFailedException(message.Response);
595switch (message.Response.Status)
600using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
602return Response.FromValue(value, message.Response);
605throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
637switch (message.Response.Status)
642using var document = JsonDocument.Parse(message.Response.ContentStream);
644return Response.FromValue(value, message.Response);
647throw _clientDiagnostics.CreateRequestFailedException(message.Response);
696switch (message.Response.Status)
701return message.Response;
703throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
730switch (message.Response.Status)
735return message.Response;
737throw _clientDiagnostics.CreateRequestFailedException(message.Response);
780switch (message.Response.Status)
785using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
787return Response.FromValue(value, message.Response);
790throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
812switch (message.Response.Status)
817using var document = JsonDocument.Parse(message.Response.ContentStream);
819return Response.FromValue(value, message.Response);
822throw _clientDiagnostics.CreateRequestFailedException(message.Response);
867switch (message.Response.Status)
871return message.Response;
873throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
895switch (message.Response.Status)
899return message.Response;
901throw _clientDiagnostics.CreateRequestFailedException(message.Response);
953switch (message.Response.Status)
957return message.Response;
959throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
986switch (message.Response.Status)
990return message.Response;
992throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1028switch (message.Response.Status)
1033using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1035return Response.FromValue(value, message.Response);
1038throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1055switch (message.Response.Status)
1060using var document = JsonDocument.Parse(message.Response.ContentStream);
1062return Response.FromValue(value, message.Response);
1065throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1108switch (message.Response.Status)
1113using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1115return Response.FromValue(value, message.Response);
1118throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1140switch (message.Response.Status)
1145using var document = JsonDocument.Parse(message.Response.ContentStream);
1147return Response.FromValue(value, message.Response);
1150throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1186switch (message.Response.Status)
1191using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1193return Response.FromValue(value, message.Response);
1196throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1218switch (message.Response.Status)
1223using var document = JsonDocument.Parse(message.Response.ContentStream);
1225return Response.FromValue(value, message.Response);
1228throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1259switch (message.Response.Status)
1264using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1266return Response.FromValue(value, message.Response);
1269throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1286switch (message.Response.Status)
1291using var document = JsonDocument.Parse(message.Response.ContentStream);
1293return Response.FromValue(value, message.Response);
1296throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1337switch (message.Response.Status)
1342using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1344return Response.FromValue(value, message.Response);
1347throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1374switch (message.Response.Status)
1379using var document = JsonDocument.Parse(message.Response.ContentStream);
1381return Response.FromValue(value, message.Response);
1384throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1420switch (message.Response.Status)
1425using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1427return Response.FromValue(value, message.Response);
1430throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1452switch (message.Response.Status)
1457using var document = JsonDocument.Parse(message.Response.ContentStream);
1459return Response.FromValue(value, message.Response);
1462throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1503switch (message.Response.Status)
1508using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1510return Response.FromValue(value, message.Response);
1513throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1540switch (message.Response.Status)
1545using var document = JsonDocument.Parse(message.Response.ContentStream);
1547return Response.FromValue(value, message.Response);
1550throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\PublicIPAddressesRestOperations.cs (62)
85switch (message.Response.Status)
90return message.Response;
92throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
114switch (message.Response.Status)
119return message.Response;
121throw _clientDiagnostics.CreateRequestFailedException(message.Response);
168switch (message.Response.Status)
173using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
175return Response.FromValue(value, message.Response);
178return Response.FromValue((PublicIPAddressData)null, message.Response);
180throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
203switch (message.Response.Status)
208using var document = JsonDocument.Parse(message.Response.ContentStream);
210return Response.FromValue(value, message.Response);
213return Response.FromValue((PublicIPAddressData)null, message.Response);
215throw _clientDiagnostics.CreateRequestFailedException(message.Response);
266switch (message.Response.Status)
270return message.Response;
272throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
299switch (message.Response.Status)
303return message.Response;
305throw _clientDiagnostics.CreateRequestFailedException(message.Response);
356switch (message.Response.Status)
361using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
363return Response.FromValue(value, message.Response);
366throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
393switch (message.Response.Status)
398using var document = JsonDocument.Parse(message.Response.ContentStream);
400return Response.FromValue(value, message.Response);
403throw _clientDiagnostics.CreateRequestFailedException(message.Response);
430switch (message.Response.Status)
435using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
437return Response.FromValue(value, message.Response);
440throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
450switch (message.Response.Status)
455using var document = JsonDocument.Parse(message.Response.ContentStream);
457return Response.FromValue(value, message.Response);
460throw _clientDiagnostics.CreateRequestFailedException(message.Response);
496switch (message.Response.Status)
501using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
503return Response.FromValue(value, message.Response);
506throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
523switch (message.Response.Status)
528using var document = JsonDocument.Parse(message.Response.ContentStream);
530return Response.FromValue(value, message.Response);
533throw _clientDiagnostics.CreateRequestFailedException(message.Response);
564switch (message.Response.Status)
569using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
571return Response.FromValue(value, message.Response);
574throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
591switch (message.Response.Status)
596using var document = JsonDocument.Parse(message.Response.ContentStream);
598return Response.FromValue(value, message.Response);
601throw _clientDiagnostics.CreateRequestFailedException(message.Response);
637switch (message.Response.Status)
642using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
644return Response.FromValue(value, message.Response);
647throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
669switch (message.Response.Status)
674using var document = JsonDocument.Parse(message.Response.ContentStream);
676return Response.FromValue(value, message.Response);
679throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\PublicIPPrefixesRestOperations.cs (62)
85switch (message.Response.Status)
90return message.Response;
92throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
114switch (message.Response.Status)
119return message.Response;
121throw _clientDiagnostics.CreateRequestFailedException(message.Response);
168switch (message.Response.Status)
173using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
175return Response.FromValue(value, message.Response);
178return Response.FromValue((PublicIPPrefixData)null, message.Response);
180throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
203switch (message.Response.Status)
208using var document = JsonDocument.Parse(message.Response.ContentStream);
210return Response.FromValue(value, message.Response);
213return Response.FromValue((PublicIPPrefixData)null, message.Response);
215throw _clientDiagnostics.CreateRequestFailedException(message.Response);
266switch (message.Response.Status)
270return message.Response;
272throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
299switch (message.Response.Status)
303return message.Response;
305throw _clientDiagnostics.CreateRequestFailedException(message.Response);
356switch (message.Response.Status)
361using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
363return Response.FromValue(value, message.Response);
366throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
393switch (message.Response.Status)
398using var document = JsonDocument.Parse(message.Response.ContentStream);
400return Response.FromValue(value, message.Response);
403throw _clientDiagnostics.CreateRequestFailedException(message.Response);
430switch (message.Response.Status)
435using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
437return Response.FromValue(value, message.Response);
440throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
450switch (message.Response.Status)
455using var document = JsonDocument.Parse(message.Response.ContentStream);
457return Response.FromValue(value, message.Response);
460throw _clientDiagnostics.CreateRequestFailedException(message.Response);
496switch (message.Response.Status)
501using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
503return Response.FromValue(value, message.Response);
506throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
523switch (message.Response.Status)
528using var document = JsonDocument.Parse(message.Response.ContentStream);
530return Response.FromValue(value, message.Response);
533throw _clientDiagnostics.CreateRequestFailedException(message.Response);
564switch (message.Response.Status)
569using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
571return Response.FromValue(value, message.Response);
574throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
591switch (message.Response.Status)
596using var document = JsonDocument.Parse(message.Response.ContentStream);
598return Response.FromValue(value, message.Response);
601throw _clientDiagnostics.CreateRequestFailedException(message.Response);
637switch (message.Response.Status)
642using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
644return Response.FromValue(value, message.Response);
647throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
669switch (message.Response.Status)
674using var document = JsonDocument.Parse(message.Response.ContentStream);
676return Response.FromValue(value, message.Response);
679throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\RouteFilterRulesRestOperations.cs (38)
92switch (message.Response.Status)
97return message.Response;
99throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
126switch (message.Response.Status)
131return message.Response;
133throw _clientDiagnostics.CreateRequestFailedException(message.Response);
182switch (message.Response.Status)
187using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
189return Response.FromValue(value, message.Response);
192return Response.FromValue((RouteFilterRuleData)null, message.Response);
194throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
221switch (message.Response.Status)
226using var document = JsonDocument.Parse(message.Response.ContentStream);
228return Response.FromValue(value, message.Response);
231return Response.FromValue((RouteFilterRuleData)null, message.Response);
233throw _clientDiagnostics.CreateRequestFailedException(message.Response);
291switch (message.Response.Status)
295return message.Response;
297throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
329switch (message.Response.Status)
333return message.Response;
335throw _clientDiagnostics.CreateRequestFailedException(message.Response);
378switch (message.Response.Status)
383using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
385return Response.FromValue(value, message.Response);
388throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
410switch (message.Response.Status)
415using var document = JsonDocument.Parse(message.Response.ContentStream);
417return Response.FromValue(value, message.Response);
420throw _clientDiagnostics.CreateRequestFailedException(message.Response);
461switch (message.Response.Status)
466using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
468return Response.FromValue(value, message.Response);
471throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
498switch (message.Response.Status)
503using var document = JsonDocument.Parse(message.Response.ContentStream);
505return Response.FromValue(value, message.Response);
508throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\RouteFiltersRestOperations.cs (62)
85switch (message.Response.Status)
90return message.Response;
92throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
114switch (message.Response.Status)
119return message.Response;
121throw _clientDiagnostics.CreateRequestFailedException(message.Response);
168switch (message.Response.Status)
173using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
175return Response.FromValue(value, message.Response);
178return Response.FromValue((RouteFilterData)null, message.Response);
180throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
203switch (message.Response.Status)
208using var document = JsonDocument.Parse(message.Response.ContentStream);
210return Response.FromValue(value, message.Response);
213return Response.FromValue((RouteFilterData)null, message.Response);
215throw _clientDiagnostics.CreateRequestFailedException(message.Response);
266switch (message.Response.Status)
270return message.Response;
272throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
299switch (message.Response.Status)
303return message.Response;
305throw _clientDiagnostics.CreateRequestFailedException(message.Response);
356switch (message.Response.Status)
361using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
363return Response.FromValue(value, message.Response);
366throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
393switch (message.Response.Status)
398using var document = JsonDocument.Parse(message.Response.ContentStream);
400return Response.FromValue(value, message.Response);
403throw _clientDiagnostics.CreateRequestFailedException(message.Response);
439switch (message.Response.Status)
444using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
446return Response.FromValue(value, message.Response);
449throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
466switch (message.Response.Status)
471using var document = JsonDocument.Parse(message.Response.ContentStream);
473return Response.FromValue(value, message.Response);
476throw _clientDiagnostics.CreateRequestFailedException(message.Response);
503switch (message.Response.Status)
508using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
510return Response.FromValue(value, message.Response);
513throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
523switch (message.Response.Status)
528using var document = JsonDocument.Parse(message.Response.ContentStream);
530return Response.FromValue(value, message.Response);
533throw _clientDiagnostics.CreateRequestFailedException(message.Response);
569switch (message.Response.Status)
574using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
576return Response.FromValue(value, message.Response);
579throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
601switch (message.Response.Status)
606using var document = JsonDocument.Parse(message.Response.ContentStream);
608return Response.FromValue(value, message.Response);
611throw _clientDiagnostics.CreateRequestFailedException(message.Response);
642switch (message.Response.Status)
647using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
649return Response.FromValue(value, message.Response);
652throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
669switch (message.Response.Status)
674using var document = JsonDocument.Parse(message.Response.ContentStream);
676return Response.FromValue(value, message.Response);
679throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\RoutesRestOperations.cs (38)
92switch (message.Response.Status)
97return message.Response;
99throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
126switch (message.Response.Status)
131return message.Response;
133throw _clientDiagnostics.CreateRequestFailedException(message.Response);
182switch (message.Response.Status)
187using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
189return Response.FromValue(value, message.Response);
192return Response.FromValue((RouteData)null, message.Response);
194throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
221switch (message.Response.Status)
226using var document = JsonDocument.Parse(message.Response.ContentStream);
228return Response.FromValue(value, message.Response);
231return Response.FromValue((RouteData)null, message.Response);
233throw _clientDiagnostics.CreateRequestFailedException(message.Response);
291switch (message.Response.Status)
295return message.Response;
297throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
329switch (message.Response.Status)
333return message.Response;
335throw _clientDiagnostics.CreateRequestFailedException(message.Response);
378switch (message.Response.Status)
383using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
385return Response.FromValue(value, message.Response);
388throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
410switch (message.Response.Status)
415using var document = JsonDocument.Parse(message.Response.ContentStream);
417return Response.FromValue(value, message.Response);
420throw _clientDiagnostics.CreateRequestFailedException(message.Response);
461switch (message.Response.Status)
466using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
468return Response.FromValue(value, message.Response);
471throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
498switch (message.Response.Status)
503using var document = JsonDocument.Parse(message.Response.ContentStream);
505return Response.FromValue(value, message.Response);
508throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\RouteTablesRestOperations.cs (62)
85switch (message.Response.Status)
90return message.Response;
92throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
114switch (message.Response.Status)
119return message.Response;
121throw _clientDiagnostics.CreateRequestFailedException(message.Response);
168switch (message.Response.Status)
173using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
175return Response.FromValue(value, message.Response);
178return Response.FromValue((RouteTableData)null, message.Response);
180throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
203switch (message.Response.Status)
208using var document = JsonDocument.Parse(message.Response.ContentStream);
210return Response.FromValue(value, message.Response);
213return Response.FromValue((RouteTableData)null, message.Response);
215throw _clientDiagnostics.CreateRequestFailedException(message.Response);
266switch (message.Response.Status)
270return message.Response;
272throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
299switch (message.Response.Status)
303return message.Response;
305throw _clientDiagnostics.CreateRequestFailedException(message.Response);
356switch (message.Response.Status)
361using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
363return Response.FromValue(value, message.Response);
366throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
393switch (message.Response.Status)
398using var document = JsonDocument.Parse(message.Response.ContentStream);
400return Response.FromValue(value, message.Response);
403throw _clientDiagnostics.CreateRequestFailedException(message.Response);
439switch (message.Response.Status)
444using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
446return Response.FromValue(value, message.Response);
449throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
466switch (message.Response.Status)
471using var document = JsonDocument.Parse(message.Response.ContentStream);
473return Response.FromValue(value, message.Response);
476throw _clientDiagnostics.CreateRequestFailedException(message.Response);
503switch (message.Response.Status)
508using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
510return Response.FromValue(value, message.Response);
513throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
523switch (message.Response.Status)
528using var document = JsonDocument.Parse(message.Response.ContentStream);
530return Response.FromValue(value, message.Response);
533throw _clientDiagnostics.CreateRequestFailedException(message.Response);
569switch (message.Response.Status)
574using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
576return Response.FromValue(value, message.Response);
579throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
601switch (message.Response.Status)
606using var document = JsonDocument.Parse(message.Response.ContentStream);
608return Response.FromValue(value, message.Response);
611throw _clientDiagnostics.CreateRequestFailedException(message.Response);
642switch (message.Response.Status)
647using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
649return Response.FromValue(value, message.Response);
652throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
669switch (message.Response.Status)
674using var document = JsonDocument.Parse(message.Response.ContentStream);
676return Response.FromValue(value, message.Response);
679throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\SecurityPartnerProvidersRestOperations.cs (62)
85switch (message.Response.Status)
90return message.Response;
92throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
114switch (message.Response.Status)
119return message.Response;
121throw _clientDiagnostics.CreateRequestFailedException(message.Response);
163switch (message.Response.Status)
168using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
170return Response.FromValue(value, message.Response);
173return Response.FromValue((SecurityPartnerProviderData)null, message.Response);
175throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
197switch (message.Response.Status)
202using var document = JsonDocument.Parse(message.Response.ContentStream);
204return Response.FromValue(value, message.Response);
207return Response.FromValue((SecurityPartnerProviderData)null, message.Response);
209throw _clientDiagnostics.CreateRequestFailedException(message.Response);
260switch (message.Response.Status)
264return message.Response;
266throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
293switch (message.Response.Status)
297return message.Response;
299throw _clientDiagnostics.CreateRequestFailedException(message.Response);
350switch (message.Response.Status)
355using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
357return Response.FromValue(value, message.Response);
360throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
387switch (message.Response.Status)
392using var document = JsonDocument.Parse(message.Response.ContentStream);
394return Response.FromValue(value, message.Response);
397throw _clientDiagnostics.CreateRequestFailedException(message.Response);
433switch (message.Response.Status)
438using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
440return Response.FromValue(value, message.Response);
443throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
460switch (message.Response.Status)
465using var document = JsonDocument.Parse(message.Response.ContentStream);
467return Response.FromValue(value, message.Response);
470throw _clientDiagnostics.CreateRequestFailedException(message.Response);
497switch (message.Response.Status)
502using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
504return Response.FromValue(value, message.Response);
507throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
517switch (message.Response.Status)
522using var document = JsonDocument.Parse(message.Response.ContentStream);
524return Response.FromValue(value, message.Response);
527throw _clientDiagnostics.CreateRequestFailedException(message.Response);
563switch (message.Response.Status)
568using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
570return Response.FromValue(value, message.Response);
573throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
595switch (message.Response.Status)
600using var document = JsonDocument.Parse(message.Response.ContentStream);
602return Response.FromValue(value, message.Response);
605throw _clientDiagnostics.CreateRequestFailedException(message.Response);
636switch (message.Response.Status)
641using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
643return Response.FromValue(value, message.Response);
646throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
663switch (message.Response.Status)
668using var document = JsonDocument.Parse(message.Response.ContentStream);
670return Response.FromValue(value, message.Response);
673throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\SecurityRulesRestOperations.cs (38)
92switch (message.Response.Status)
97return message.Response;
99throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
126switch (message.Response.Status)
131return message.Response;
133throw _clientDiagnostics.CreateRequestFailedException(message.Response);
182switch (message.Response.Status)
187using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
189return Response.FromValue(value, message.Response);
192return Response.FromValue((SecurityRuleData)null, message.Response);
194throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
221switch (message.Response.Status)
226using var document = JsonDocument.Parse(message.Response.ContentStream);
228return Response.FromValue(value, message.Response);
231return Response.FromValue((SecurityRuleData)null, message.Response);
233throw _clientDiagnostics.CreateRequestFailedException(message.Response);
291switch (message.Response.Status)
295return message.Response;
297throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
329switch (message.Response.Status)
333return message.Response;
335throw _clientDiagnostics.CreateRequestFailedException(message.Response);
378switch (message.Response.Status)
383using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
385return Response.FromValue(value, message.Response);
388throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
410switch (message.Response.Status)
415using var document = JsonDocument.Parse(message.Response.ContentStream);
417return Response.FromValue(value, message.Response);
420throw _clientDiagnostics.CreateRequestFailedException(message.Response);
461switch (message.Response.Status)
466using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
468return Response.FromValue(value, message.Response);
471throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
498switch (message.Response.Status)
503using var document = JsonDocument.Parse(message.Response.ContentStream);
505return Response.FromValue(value, message.Response);
508throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ServiceEndpointPoliciesRestOperations.cs (62)
85switch (message.Response.Status)
90return message.Response;
92throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
114switch (message.Response.Status)
119return message.Response;
121throw _clientDiagnostics.CreateRequestFailedException(message.Response);
168switch (message.Response.Status)
173using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
175return Response.FromValue(value, message.Response);
178return Response.FromValue((ServiceEndpointPolicyData)null, message.Response);
180throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
203switch (message.Response.Status)
208using var document = JsonDocument.Parse(message.Response.ContentStream);
210return Response.FromValue(value, message.Response);
213return Response.FromValue((ServiceEndpointPolicyData)null, message.Response);
215throw _clientDiagnostics.CreateRequestFailedException(message.Response);
266switch (message.Response.Status)
270return message.Response;
272throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
299switch (message.Response.Status)
303return message.Response;
305throw _clientDiagnostics.CreateRequestFailedException(message.Response);
356switch (message.Response.Status)
361using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
363return Response.FromValue(value, message.Response);
366throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
393switch (message.Response.Status)
398using var document = JsonDocument.Parse(message.Response.ContentStream);
400return Response.FromValue(value, message.Response);
403throw _clientDiagnostics.CreateRequestFailedException(message.Response);
430switch (message.Response.Status)
435using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
437return Response.FromValue(value, message.Response);
440throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
450switch (message.Response.Status)
455using var document = JsonDocument.Parse(message.Response.ContentStream);
457return Response.FromValue(value, message.Response);
460throw _clientDiagnostics.CreateRequestFailedException(message.Response);
496switch (message.Response.Status)
501using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
503return Response.FromValue(value, message.Response);
506throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
523switch (message.Response.Status)
528using var document = JsonDocument.Parse(message.Response.ContentStream);
530return Response.FromValue(value, message.Response);
533throw _clientDiagnostics.CreateRequestFailedException(message.Response);
564switch (message.Response.Status)
569using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
571return Response.FromValue(value, message.Response);
574throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
591switch (message.Response.Status)
596using var document = JsonDocument.Parse(message.Response.ContentStream);
598return Response.FromValue(value, message.Response);
601throw _clientDiagnostics.CreateRequestFailedException(message.Response);
637switch (message.Response.Status)
642using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
644return Response.FromValue(value, message.Response);
647throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
669switch (message.Response.Status)
674using var document = JsonDocument.Parse(message.Response.ContentStream);
676return Response.FromValue(value, message.Response);
679throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ServiceEndpointPolicyDefinitionsRestOperations.cs (38)
92switch (message.Response.Status)
97return message.Response;
99throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
126switch (message.Response.Status)
131return message.Response;
133throw _clientDiagnostics.CreateRequestFailedException(message.Response);
182switch (message.Response.Status)
187using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
189return Response.FromValue(value, message.Response);
192return Response.FromValue((ServiceEndpointPolicyDefinitionData)null, message.Response);
194throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
221switch (message.Response.Status)
226using var document = JsonDocument.Parse(message.Response.ContentStream);
228return Response.FromValue(value, message.Response);
231return Response.FromValue((ServiceEndpointPolicyDefinitionData)null, message.Response);
233throw _clientDiagnostics.CreateRequestFailedException(message.Response);
291switch (message.Response.Status)
295return message.Response;
297throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
329switch (message.Response.Status)
333return message.Response;
335throw _clientDiagnostics.CreateRequestFailedException(message.Response);
378switch (message.Response.Status)
383using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
385return Response.FromValue(value, message.Response);
388throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
410switch (message.Response.Status)
415using var document = JsonDocument.Parse(message.Response.ContentStream);
417return Response.FromValue(value, message.Response);
420throw _clientDiagnostics.CreateRequestFailedException(message.Response);
461switch (message.Response.Status)
466using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
468return Response.FromValue(value, message.Response);
471throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
498switch (message.Response.Status)
503using var document = JsonDocument.Parse(message.Response.ContentStream);
505return Response.FromValue(value, message.Response);
508throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\SubnetsRestOperations.cs (50)
92switch (message.Response.Status)
97return message.Response;
99throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
126switch (message.Response.Status)
131return message.Response;
133throw _clientDiagnostics.CreateRequestFailedException(message.Response);
187switch (message.Response.Status)
192using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
194return Response.FromValue(value, message.Response);
197return Response.FromValue((SubnetData)null, message.Response);
199throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
227switch (message.Response.Status)
232using var document = JsonDocument.Parse(message.Response.ContentStream);
234return Response.FromValue(value, message.Response);
237return Response.FromValue((SubnetData)null, message.Response);
239throw _clientDiagnostics.CreateRequestFailedException(message.Response);
297switch (message.Response.Status)
301return message.Response;
303throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
335switch (message.Response.Status)
339return message.Response;
341throw _clientDiagnostics.CreateRequestFailedException(message.Response);
400switch (message.Response.Status)
404return message.Response;
406throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
438switch (message.Response.Status)
442return message.Response;
444throw _clientDiagnostics.CreateRequestFailedException(message.Response);
503switch (message.Response.Status)
507return message.Response;
509throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
541switch (message.Response.Status)
545return message.Response;
547throw _clientDiagnostics.CreateRequestFailedException(message.Response);
590switch (message.Response.Status)
595using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
597return Response.FromValue(value, message.Response);
600throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
622switch (message.Response.Status)
627using var document = JsonDocument.Parse(message.Response.ContentStream);
629return Response.FromValue(value, message.Response);
632throw _clientDiagnostics.CreateRequestFailedException(message.Response);
673switch (message.Response.Status)
678using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
680return Response.FromValue(value, message.Response);
683throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
710switch (message.Response.Status)
715using var document = JsonDocument.Parse(message.Response.ContentStream);
717return Response.FromValue(value, message.Response);
720throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VirtualApplianceSitesRestOperations.cs (38)
92switch (message.Response.Status)
97return message.Response;
99throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
126switch (message.Response.Status)
131return message.Response;
133throw _clientDiagnostics.CreateRequestFailedException(message.Response);
182switch (message.Response.Status)
187using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
189return Response.FromValue(value, message.Response);
192return Response.FromValue((VirtualApplianceSiteData)null, message.Response);
194throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
221switch (message.Response.Status)
226using var document = JsonDocument.Parse(message.Response.ContentStream);
228return Response.FromValue(value, message.Response);
231return Response.FromValue((VirtualApplianceSiteData)null, message.Response);
233throw _clientDiagnostics.CreateRequestFailedException(message.Response);
291switch (message.Response.Status)
295return message.Response;
297throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
329switch (message.Response.Status)
333return message.Response;
335throw _clientDiagnostics.CreateRequestFailedException(message.Response);
378switch (message.Response.Status)
383using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
385return Response.FromValue(value, message.Response);
388throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
410switch (message.Response.Status)
415using var document = JsonDocument.Parse(message.Response.ContentStream);
417return Response.FromValue(value, message.Response);
420throw _clientDiagnostics.CreateRequestFailedException(message.Response);
461switch (message.Response.Status)
466using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
468return Response.FromValue(value, message.Response);
471throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
498switch (message.Response.Status)
503using var document = JsonDocument.Parse(message.Response.ContentStream);
505return Response.FromValue(value, message.Response);
508throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VirtualApplianceSkusRestOperations.cs (24)
70switch (message.Response.Status)
75using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
77return Response.FromValue(value, message.Response);
80throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
90switch (message.Response.Status)
95using var document = JsonDocument.Parse(message.Response.ContentStream);
97return Response.FromValue(value, message.Response);
100throw _clientDiagnostics.CreateRequestFailedException(message.Response);
135switch (message.Response.Status)
140using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
142return Response.FromValue(value, message.Response);
145throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
162switch (message.Response.Status)
167using var document = JsonDocument.Parse(message.Response.ContentStream);
169return Response.FromValue(value, message.Response);
172throw _clientDiagnostics.CreateRequestFailedException(message.Response);
203switch (message.Response.Status)
208using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
210return Response.FromValue(value, message.Response);
213throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
230switch (message.Response.Status)
235using var document = JsonDocument.Parse(message.Response.ContentStream);
237return Response.FromValue(value, message.Response);
240throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VirtualHubBgpConnectionsRestOperations.cs (50)
92switch (message.Response.Status)
97using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
99return Response.FromValue(value, message.Response);
102return Response.FromValue((BgpConnectionData)null, message.Response);
104throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
131switch (message.Response.Status)
136using var document = JsonDocument.Parse(message.Response.ContentStream);
138return Response.FromValue(value, message.Response);
141return Response.FromValue((BgpConnectionData)null, message.Response);
143throw _clientDiagnostics.CreateRequestFailedException(message.Response);
201switch (message.Response.Status)
205return message.Response;
207throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
239switch (message.Response.Status)
243return message.Response;
245throw _clientDiagnostics.CreateRequestFailedException(message.Response);
294switch (message.Response.Status)
299return message.Response;
301throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
328switch (message.Response.Status)
333return message.Response;
335throw _clientDiagnostics.CreateRequestFailedException(message.Response);
378switch (message.Response.Status)
383using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
385return Response.FromValue(value, message.Response);
388throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
410switch (message.Response.Status)
415using var document = JsonDocument.Parse(message.Response.ContentStream);
417return Response.FromValue(value, message.Response);
420throw _clientDiagnostics.CreateRequestFailedException(message.Response);
470switch (message.Response.Status)
474return message.Response;
476throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
503switch (message.Response.Status)
507return message.Response;
509throw _clientDiagnostics.CreateRequestFailedException(message.Response);
559switch (message.Response.Status)
563return message.Response;
565throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
592switch (message.Response.Status)
596return message.Response;
598throw _clientDiagnostics.CreateRequestFailedException(message.Response);
639switch (message.Response.Status)
644using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
646return Response.FromValue(value, message.Response);
649throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
676switch (message.Response.Status)
681using var document = JsonDocument.Parse(message.Response.ContentStream);
683return Response.FromValue(value, message.Response);
686throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VirtualHubIpConfigurationRestOperations.cs (38)
92switch (message.Response.Status)
97using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
99return Response.FromValue(value, message.Response);
102return Response.FromValue((HubIpConfigurationData)null, message.Response);
104throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
131switch (message.Response.Status)
136using var document = JsonDocument.Parse(message.Response.ContentStream);
138return Response.FromValue(value, message.Response);
141return Response.FromValue((HubIpConfigurationData)null, message.Response);
143throw _clientDiagnostics.CreateRequestFailedException(message.Response);
201switch (message.Response.Status)
205return message.Response;
207throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
239switch (message.Response.Status)
243return message.Response;
245throw _clientDiagnostics.CreateRequestFailedException(message.Response);
294switch (message.Response.Status)
299return message.Response;
301throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
328switch (message.Response.Status)
333return message.Response;
335throw _clientDiagnostics.CreateRequestFailedException(message.Response);
378switch (message.Response.Status)
383using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
385return Response.FromValue(value, message.Response);
388throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
410switch (message.Response.Status)
415using var document = JsonDocument.Parse(message.Response.ContentStream);
417return Response.FromValue(value, message.Response);
420throw _clientDiagnostics.CreateRequestFailedException(message.Response);
461switch (message.Response.Status)
466using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
468return Response.FromValue(value, message.Response);
471throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
498switch (message.Response.Status)
503using var document = JsonDocument.Parse(message.Response.ContentStream);
505return Response.FromValue(value, message.Response);
508throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VirtualHubRouteTableV2SRestOperations.cs (38)
92switch (message.Response.Status)
97using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
99return Response.FromValue(value, message.Response);
102return Response.FromValue((VirtualHubRouteTableV2Data)null, message.Response);
104throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
131switch (message.Response.Status)
136using var document = JsonDocument.Parse(message.Response.ContentStream);
138return Response.FromValue(value, message.Response);
141return Response.FromValue((VirtualHubRouteTableV2Data)null, message.Response);
143throw _clientDiagnostics.CreateRequestFailedException(message.Response);
201switch (message.Response.Status)
205return message.Response;
207throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
239switch (message.Response.Status)
243return message.Response;
245throw _clientDiagnostics.CreateRequestFailedException(message.Response);
294switch (message.Response.Status)
299return message.Response;
301throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
328switch (message.Response.Status)
333return message.Response;
335throw _clientDiagnostics.CreateRequestFailedException(message.Response);
378switch (message.Response.Status)
383using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
385return Response.FromValue(value, message.Response);
388throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
410switch (message.Response.Status)
415using var document = JsonDocument.Parse(message.Response.ContentStream);
417return Response.FromValue(value, message.Response);
420throw _clientDiagnostics.CreateRequestFailedException(message.Response);
461switch (message.Response.Status)
466using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
468return Response.FromValue(value, message.Response);
471throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
498switch (message.Response.Status)
503using var document = JsonDocument.Parse(message.Response.ContentStream);
505return Response.FromValue(value, message.Response);
508throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VirtualHubsRestOperations.cs (68)
85switch (message.Response.Status)
90using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
92return Response.FromValue(value, message.Response);
95return Response.FromValue((VirtualHubData)null, message.Response);
97throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
119switch (message.Response.Status)
124using var document = JsonDocument.Parse(message.Response.ContentStream);
126return Response.FromValue(value, message.Response);
129return Response.FromValue((VirtualHubData)null, message.Response);
131throw _clientDiagnostics.CreateRequestFailedException(message.Response);
182switch (message.Response.Status)
186return message.Response;
188throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
215switch (message.Response.Status)
219return message.Response;
221throw _clientDiagnostics.CreateRequestFailedException(message.Response);
272switch (message.Response.Status)
277using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
279return Response.FromValue(value, message.Response);
282throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
309switch (message.Response.Status)
314using var document = JsonDocument.Parse(message.Response.ContentStream);
316return Response.FromValue(value, message.Response);
319throw _clientDiagnostics.CreateRequestFailedException(message.Response);
361switch (message.Response.Status)
366return message.Response;
368throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
390switch (message.Response.Status)
395return message.Response;
397throw _clientDiagnostics.CreateRequestFailedException(message.Response);
433switch (message.Response.Status)
438using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
440return Response.FromValue(value, message.Response);
443throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
460switch (message.Response.Status)
465using var document = JsonDocument.Parse(message.Response.ContentStream);
467return Response.FromValue(value, message.Response);
470throw _clientDiagnostics.CreateRequestFailedException(message.Response);
497switch (message.Response.Status)
502using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
504return Response.FromValue(value, message.Response);
507throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
517switch (message.Response.Status)
522using var document = JsonDocument.Parse(message.Response.ContentStream);
524return Response.FromValue(value, message.Response);
527throw _clientDiagnostics.CreateRequestFailedException(message.Response);
578switch (message.Response.Status)
582return message.Response;
584throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
607switch (message.Response.Status)
611return message.Response;
613throw _clientDiagnostics.CreateRequestFailedException(message.Response);
649switch (message.Response.Status)
654using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
656return Response.FromValue(value, message.Response);
659throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
681switch (message.Response.Status)
686using var document = JsonDocument.Parse(message.Response.ContentStream);
688return Response.FromValue(value, message.Response);
691throw _clientDiagnostics.CreateRequestFailedException(message.Response);
722switch (message.Response.Status)
727using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
729return Response.FromValue(value, message.Response);
732throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
749switch (message.Response.Status)
754using var document = JsonDocument.Parse(message.Response.ContentStream);
756return Response.FromValue(value, message.Response);
759throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VirtualNetworkGatewayConnectionsRestOperations.cs (88)
94switch (message.Response.Status)
98return message.Response;
100throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
127switch (message.Response.Status)
131return message.Response;
133throw _clientDiagnostics.CreateRequestFailedException(message.Response);
175switch (message.Response.Status)
180using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
182return Response.FromValue(value, message.Response);
185return Response.FromValue((VirtualNetworkGatewayConnectionData)null, message.Response);
187throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
209switch (message.Response.Status)
214using var document = JsonDocument.Parse(message.Response.ContentStream);
216return Response.FromValue(value, message.Response);
219return Response.FromValue((VirtualNetworkGatewayConnectionData)null, message.Response);
221throw _clientDiagnostics.CreateRequestFailedException(message.Response);
263switch (message.Response.Status)
268return message.Response;
270throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
292switch (message.Response.Status)
297return message.Response;
299throw _clientDiagnostics.CreateRequestFailedException(message.Response);
350switch (message.Response.Status)
354return message.Response;
356throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
383switch (message.Response.Status)
387return message.Response;
389throw _clientDiagnostics.CreateRequestFailedException(message.Response);
441switch (message.Response.Status)
445return message.Response;
447throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
474switch (message.Response.Status)
478return message.Response;
480throw _clientDiagnostics.CreateRequestFailedException(message.Response);
523switch (message.Response.Status)
528using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
530return Response.FromValue(value, message.Response);
533throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
555switch (message.Response.Status)
560using var document = JsonDocument.Parse(message.Response.ContentStream);
562return Response.FromValue(value, message.Response);
565throw _clientDiagnostics.CreateRequestFailedException(message.Response);
601switch (message.Response.Status)
606using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
608return Response.FromValue(value, message.Response);
611throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
628switch (message.Response.Status)
633using var document = JsonDocument.Parse(message.Response.ContentStream);
635return Response.FromValue(value, message.Response);
638throw _clientDiagnostics.CreateRequestFailedException(message.Response);
690switch (message.Response.Status)
694return message.Response;
696throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
723switch (message.Response.Status)
727return message.Response;
729throw _clientDiagnostics.CreateRequestFailedException(message.Response);
780switch (message.Response.Status)
784return message.Response;
786throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
809switch (message.Response.Status)
813return message.Response;
815throw _clientDiagnostics.CreateRequestFailedException(message.Response);
867switch (message.Response.Status)
871return message.Response;
873throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
900switch (message.Response.Status)
904return message.Response;
906throw _clientDiagnostics.CreateRequestFailedException(message.Response);
949switch (message.Response.Status)
953return message.Response;
955throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
977switch (message.Response.Status)
981return message.Response;
983throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1026switch (message.Response.Status)
1029return message.Response;
1031throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1053switch (message.Response.Status)
1056return message.Response;
1058throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1094switch (message.Response.Status)
1099using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1101return Response.FromValue(value, message.Response);
1104throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1126switch (message.Response.Status)
1131using var document = JsonDocument.Parse(message.Response.ContentStream);
1133return Response.FromValue(value, message.Response);
1136throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VirtualNetworkGatewayNatRulesRestOperations.cs (38)
92switch (message.Response.Status)
97using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
99return Response.FromValue(value, message.Response);
102return Response.FromValue((VirtualNetworkGatewayNatRuleData)null, message.Response);
104throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
131switch (message.Response.Status)
136using var document = JsonDocument.Parse(message.Response.ContentStream);
138return Response.FromValue(value, message.Response);
141return Response.FromValue((VirtualNetworkGatewayNatRuleData)null, message.Response);
143throw _clientDiagnostics.CreateRequestFailedException(message.Response);
201switch (message.Response.Status)
205return message.Response;
207throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
239switch (message.Response.Status)
243return message.Response;
245throw _clientDiagnostics.CreateRequestFailedException(message.Response);
294switch (message.Response.Status)
299return message.Response;
301throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
328switch (message.Response.Status)
333return message.Response;
335throw _clientDiagnostics.CreateRequestFailedException(message.Response);
378switch (message.Response.Status)
383using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
385return Response.FromValue(value, message.Response);
388throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
410switch (message.Response.Status)
415using var document = JsonDocument.Parse(message.Response.ContentStream);
417return Response.FromValue(value, message.Response);
420throw _clientDiagnostics.CreateRequestFailedException(message.Response);
461switch (message.Response.Status)
466using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
468return Response.FromValue(value, message.Response);
471throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
498switch (message.Response.Status)
503using var document = JsonDocument.Parse(message.Response.ContentStream);
505return Response.FromValue(value, message.Response);
508throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VirtualNetworkGatewaysRestOperations.cs (160)
94switch (message.Response.Status)
98return message.Response;
100throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
127switch (message.Response.Status)
131return message.Response;
133throw _clientDiagnostics.CreateRequestFailedException(message.Response);
175switch (message.Response.Status)
180using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
182return Response.FromValue(value, message.Response);
185return Response.FromValue((VirtualNetworkGatewayData)null, message.Response);
187throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
209switch (message.Response.Status)
214using var document = JsonDocument.Parse(message.Response.ContentStream);
216return Response.FromValue(value, message.Response);
219return Response.FromValue((VirtualNetworkGatewayData)null, message.Response);
221throw _clientDiagnostics.CreateRequestFailedException(message.Response);
263switch (message.Response.Status)
268return message.Response;
270throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
292switch (message.Response.Status)
297return message.Response;
299throw _clientDiagnostics.CreateRequestFailedException(message.Response);
350switch (message.Response.Status)
354return message.Response;
356throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
383switch (message.Response.Status)
387return message.Response;
389throw _clientDiagnostics.CreateRequestFailedException(message.Response);
425switch (message.Response.Status)
430using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
432return Response.FromValue(value, message.Response);
435throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
452switch (message.Response.Status)
457using var document = JsonDocument.Parse(message.Response.ContentStream);
459return Response.FromValue(value, message.Response);
462throw _clientDiagnostics.CreateRequestFailedException(message.Response);
505switch (message.Response.Status)
510using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
512return Response.FromValue(value, message.Response);
515throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
537switch (message.Response.Status)
542using var document = JsonDocument.Parse(message.Response.ContentStream);
544return Response.FromValue(value, message.Response);
547throw _clientDiagnostics.CreateRequestFailedException(message.Response);
595switch (message.Response.Status)
599return message.Response;
601throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
624switch (message.Response.Status)
628return message.Response;
630throw _clientDiagnostics.CreateRequestFailedException(message.Response);
673switch (message.Response.Status)
677return message.Response;
679throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
701switch (message.Response.Status)
705return message.Response;
707throw _clientDiagnostics.CreateRequestFailedException(message.Response);
759switch (message.Response.Status)
763return message.Response;
765throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
792switch (message.Response.Status)
796return message.Response;
798throw _clientDiagnostics.CreateRequestFailedException(message.Response);
850switch (message.Response.Status)
854return message.Response;
856throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
883switch (message.Response.Status)
887return message.Response;
889throw _clientDiagnostics.CreateRequestFailedException(message.Response);
932switch (message.Response.Status)
936return message.Response;
938throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
960switch (message.Response.Status)
964return message.Response;
966throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1014switch (message.Response.Status)
1018return message.Response;
1020throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1043switch (message.Response.Status)
1047return message.Response;
1049throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1092switch (message.Response.Status)
1097using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1099return Response.FromValue(value, message.Response);
1102throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1124switch (message.Response.Status)
1129using var document = JsonDocument.Parse(message.Response.ContentStream);
1131return Response.FromValue(value, message.Response);
1134throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1177switch (message.Response.Status)
1181return message.Response;
1183throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1205switch (message.Response.Status)
1209return message.Response;
1211throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1260switch (message.Response.Status)
1264return message.Response;
1266throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1293switch (message.Response.Status)
1297return message.Response;
1299throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1351switch (message.Response.Status)
1355return message.Response;
1357throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1384switch (message.Response.Status)
1388return message.Response;
1390throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1433switch (message.Response.Status)
1436return message.Response;
1438throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1460switch (message.Response.Status)
1463return message.Response;
1465throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1517switch (message.Response.Status)
1522using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1524return Response.FromValue(value, message.Response);
1527throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1554switch (message.Response.Status)
1559using var document = JsonDocument.Parse(message.Response.ContentStream);
1561return Response.FromValue(value, message.Response);
1564throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1615switch (message.Response.Status)
1619return message.Response;
1621throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1644switch (message.Response.Status)
1648return message.Response;
1650throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1702switch (message.Response.Status)
1706return message.Response;
1708throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1735switch (message.Response.Status)
1739return message.Response;
1741throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1784switch (message.Response.Status)
1788return message.Response;
1790throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1812switch (message.Response.Status)
1816return message.Response;
1818throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1870switch (message.Response.Status)
1874return message.Response;
1876throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1903switch (message.Response.Status)
1907return message.Response;
1909throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1945switch (message.Response.Status)
1950using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1952return Response.FromValue(value, message.Response);
1955throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1977switch (message.Response.Status)
1982using var document = JsonDocument.Parse(message.Response.ContentStream);
1984return Response.FromValue(value, message.Response);
1987throw _clientDiagnostics.CreateRequestFailedException(message.Response);
2028switch (message.Response.Status)
2033using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
2035return Response.FromValue(value, message.Response);
2038throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
2065switch (message.Response.Status)
2070using var document = JsonDocument.Parse(message.Response.ContentStream);
2072return Response.FromValue(value, message.Response);
2075throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VirtualNetworkPeeringsRestOperations.cs (38)
92switch (message.Response.Status)
97return message.Response;
99throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
126switch (message.Response.Status)
131return message.Response;
133throw _clientDiagnostics.CreateRequestFailedException(message.Response);
182switch (message.Response.Status)
187using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
189return Response.FromValue(value, message.Response);
192return Response.FromValue((VirtualNetworkPeeringData)null, message.Response);
194throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
221switch (message.Response.Status)
226using var document = JsonDocument.Parse(message.Response.ContentStream);
228return Response.FromValue(value, message.Response);
231return Response.FromValue((VirtualNetworkPeeringData)null, message.Response);
233throw _clientDiagnostics.CreateRequestFailedException(message.Response);
296switch (message.Response.Status)
300return message.Response;
302throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
335switch (message.Response.Status)
339return message.Response;
341throw _clientDiagnostics.CreateRequestFailedException(message.Response);
384switch (message.Response.Status)
389using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
391return Response.FromValue(value, message.Response);
394throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
416switch (message.Response.Status)
421using var document = JsonDocument.Parse(message.Response.ContentStream);
423return Response.FromValue(value, message.Response);
426throw _clientDiagnostics.CreateRequestFailedException(message.Response);
467switch (message.Response.Status)
472using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
474return Response.FromValue(value, message.Response);
477throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
504switch (message.Response.Status)
509using var document = JsonDocument.Parse(message.Response.ContentStream);
511return Response.FromValue(value, message.Response);
514throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VirtualNetworksRestOperations.cs (86)
85switch (message.Response.Status)
90return message.Response;
92throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
114switch (message.Response.Status)
119return message.Response;
121throw _clientDiagnostics.CreateRequestFailedException(message.Response);
168switch (message.Response.Status)
173using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
175return Response.FromValue(value, message.Response);
178return Response.FromValue((VirtualNetworkData)null, message.Response);
180throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
203switch (message.Response.Status)
208using var document = JsonDocument.Parse(message.Response.ContentStream);
210return Response.FromValue(value, message.Response);
213return Response.FromValue((VirtualNetworkData)null, message.Response);
215throw _clientDiagnostics.CreateRequestFailedException(message.Response);
266switch (message.Response.Status)
270return message.Response;
272throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
299switch (message.Response.Status)
303return message.Response;
305throw _clientDiagnostics.CreateRequestFailedException(message.Response);
356switch (message.Response.Status)
361using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
363return Response.FromValue(value, message.Response);
366throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
393switch (message.Response.Status)
398using var document = JsonDocument.Parse(message.Response.ContentStream);
400return Response.FromValue(value, message.Response);
403throw _clientDiagnostics.CreateRequestFailedException(message.Response);
430switch (message.Response.Status)
435using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
437return Response.FromValue(value, message.Response);
440throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
450switch (message.Response.Status)
455using var document = JsonDocument.Parse(message.Response.ContentStream);
457return Response.FromValue(value, message.Response);
460throw _clientDiagnostics.CreateRequestFailedException(message.Response);
496switch (message.Response.Status)
501using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
503return Response.FromValue(value, message.Response);
506throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
523switch (message.Response.Status)
528using var document = JsonDocument.Parse(message.Response.ContentStream);
530return Response.FromValue(value, message.Response);
533throw _clientDiagnostics.CreateRequestFailedException(message.Response);
582switch (message.Response.Status)
587using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
589return Response.FromValue(value, message.Response);
592throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
619switch (message.Response.Status)
624using var document = JsonDocument.Parse(message.Response.ContentStream);
626return Response.FromValue(value, message.Response);
629throw _clientDiagnostics.CreateRequestFailedException(message.Response);
672switch (message.Response.Status)
677using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
679return Response.FromValue(value, message.Response);
682throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
704switch (message.Response.Status)
709using var document = JsonDocument.Parse(message.Response.ContentStream);
711return Response.FromValue(value, message.Response);
714throw _clientDiagnostics.CreateRequestFailedException(message.Response);
745switch (message.Response.Status)
750using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
752return Response.FromValue(value, message.Response);
755throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
772switch (message.Response.Status)
777using var document = JsonDocument.Parse(message.Response.ContentStream);
779return Response.FromValue(value, message.Response);
782throw _clientDiagnostics.CreateRequestFailedException(message.Response);
818switch (message.Response.Status)
823using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
825return Response.FromValue(value, message.Response);
828throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
850switch (message.Response.Status)
855using var document = JsonDocument.Parse(message.Response.ContentStream);
857return Response.FromValue(value, message.Response);
860throw _clientDiagnostics.CreateRequestFailedException(message.Response);
901switch (message.Response.Status)
906using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
908return Response.FromValue(value, message.Response);
911throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
938switch (message.Response.Status)
943using var document = JsonDocument.Parse(message.Response.ContentStream);
945return Response.FromValue(value, message.Response);
948throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VirtualNetworkTapsRestOperations.cs (62)
85switch (message.Response.Status)
90return message.Response;
92throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
114switch (message.Response.Status)
119return message.Response;
121throw _clientDiagnostics.CreateRequestFailedException(message.Response);
163switch (message.Response.Status)
168using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
170return Response.FromValue(value, message.Response);
173return Response.FromValue((VirtualNetworkTapData)null, message.Response);
175throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
197switch (message.Response.Status)
202using var document = JsonDocument.Parse(message.Response.ContentStream);
204return Response.FromValue(value, message.Response);
207return Response.FromValue((VirtualNetworkTapData)null, message.Response);
209throw _clientDiagnostics.CreateRequestFailedException(message.Response);
260switch (message.Response.Status)
264return message.Response;
266throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
293switch (message.Response.Status)
297return message.Response;
299throw _clientDiagnostics.CreateRequestFailedException(message.Response);
350switch (message.Response.Status)
355using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
357return Response.FromValue(value, message.Response);
360throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
387switch (message.Response.Status)
392using var document = JsonDocument.Parse(message.Response.ContentStream);
394return Response.FromValue(value, message.Response);
397throw _clientDiagnostics.CreateRequestFailedException(message.Response);
424switch (message.Response.Status)
429using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
431return Response.FromValue(value, message.Response);
434throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
444switch (message.Response.Status)
449using var document = JsonDocument.Parse(message.Response.ContentStream);
451return Response.FromValue(value, message.Response);
454throw _clientDiagnostics.CreateRequestFailedException(message.Response);
490switch (message.Response.Status)
495using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
497return Response.FromValue(value, message.Response);
500throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
517switch (message.Response.Status)
522using var document = JsonDocument.Parse(message.Response.ContentStream);
524return Response.FromValue(value, message.Response);
527throw _clientDiagnostics.CreateRequestFailedException(message.Response);
558switch (message.Response.Status)
563using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
565return Response.FromValue(value, message.Response);
568throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
585switch (message.Response.Status)
590using var document = JsonDocument.Parse(message.Response.ContentStream);
592return Response.FromValue(value, message.Response);
595throw _clientDiagnostics.CreateRequestFailedException(message.Response);
631switch (message.Response.Status)
636using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
638return Response.FromValue(value, message.Response);
641throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
663switch (message.Response.Status)
668using var document = JsonDocument.Parse(message.Response.ContentStream);
670return Response.FromValue(value, message.Response);
673throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VirtualRouterPeeringsRestOperations.cs (38)
92switch (message.Response.Status)
97return message.Response;
99throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
126switch (message.Response.Status)
131return message.Response;
133throw _clientDiagnostics.CreateRequestFailedException(message.Response);
182switch (message.Response.Status)
187using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
189return Response.FromValue(value, message.Response);
192return Response.FromValue((VirtualRouterPeeringData)null, message.Response);
194throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
221switch (message.Response.Status)
226using var document = JsonDocument.Parse(message.Response.ContentStream);
228return Response.FromValue(value, message.Response);
231return Response.FromValue((VirtualRouterPeeringData)null, message.Response);
233throw _clientDiagnostics.CreateRequestFailedException(message.Response);
291switch (message.Response.Status)
295return message.Response;
297throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
329switch (message.Response.Status)
333return message.Response;
335throw _clientDiagnostics.CreateRequestFailedException(message.Response);
378switch (message.Response.Status)
383using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
385return Response.FromValue(value, message.Response);
388throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
410switch (message.Response.Status)
415using var document = JsonDocument.Parse(message.Response.ContentStream);
417return Response.FromValue(value, message.Response);
420throw _clientDiagnostics.CreateRequestFailedException(message.Response);
461switch (message.Response.Status)
466using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
468return Response.FromValue(value, message.Response);
471throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
498switch (message.Response.Status)
503using var document = JsonDocument.Parse(message.Response.ContentStream);
505return Response.FromValue(value, message.Response);
508throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VirtualRoutersRestOperations.cs (54)
85switch (message.Response.Status)
90return message.Response;
92throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
114switch (message.Response.Status)
119return message.Response;
121throw _clientDiagnostics.CreateRequestFailedException(message.Response);
168switch (message.Response.Status)
173using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
175return Response.FromValue(value, message.Response);
178return Response.FromValue((VirtualRouterData)null, message.Response);
180throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
203switch (message.Response.Status)
208using var document = JsonDocument.Parse(message.Response.ContentStream);
210return Response.FromValue(value, message.Response);
213return Response.FromValue((VirtualRouterData)null, message.Response);
215throw _clientDiagnostics.CreateRequestFailedException(message.Response);
266switch (message.Response.Status)
270return message.Response;
272throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
299switch (message.Response.Status)
303return message.Response;
305throw _clientDiagnostics.CreateRequestFailedException(message.Response);
341switch (message.Response.Status)
346using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
348return Response.FromValue(value, message.Response);
351throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
368switch (message.Response.Status)
373using var document = JsonDocument.Parse(message.Response.ContentStream);
375return Response.FromValue(value, message.Response);
378throw _clientDiagnostics.CreateRequestFailedException(message.Response);
405switch (message.Response.Status)
410using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
412return Response.FromValue(value, message.Response);
415throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
425switch (message.Response.Status)
430using var document = JsonDocument.Parse(message.Response.ContentStream);
432return Response.FromValue(value, message.Response);
435throw _clientDiagnostics.CreateRequestFailedException(message.Response);
471switch (message.Response.Status)
476using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
478return Response.FromValue(value, message.Response);
481throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
503switch (message.Response.Status)
508using var document = JsonDocument.Parse(message.Response.ContentStream);
510return Response.FromValue(value, message.Response);
513throw _clientDiagnostics.CreateRequestFailedException(message.Response);
544switch (message.Response.Status)
549using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
551return Response.FromValue(value, message.Response);
554throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
571switch (message.Response.Status)
576using var document = JsonDocument.Parse(message.Response.ContentStream);
578return Response.FromValue(value, message.Response);
581throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VirtualWansRestOperations.cs (62)
85switch (message.Response.Status)
90using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
92return Response.FromValue(value, message.Response);
95return Response.FromValue((VirtualWANData)null, message.Response);
97throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
119switch (message.Response.Status)
124using var document = JsonDocument.Parse(message.Response.ContentStream);
126return Response.FromValue(value, message.Response);
129return Response.FromValue((VirtualWANData)null, message.Response);
131throw _clientDiagnostics.CreateRequestFailedException(message.Response);
182switch (message.Response.Status)
186return message.Response;
188throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
215switch (message.Response.Status)
219return message.Response;
221throw _clientDiagnostics.CreateRequestFailedException(message.Response);
272switch (message.Response.Status)
277using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
279return Response.FromValue(value, message.Response);
282throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
309switch (message.Response.Status)
314using var document = JsonDocument.Parse(message.Response.ContentStream);
316return Response.FromValue(value, message.Response);
319throw _clientDiagnostics.CreateRequestFailedException(message.Response);
361switch (message.Response.Status)
366return message.Response;
368throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
390switch (message.Response.Status)
395return message.Response;
397throw _clientDiagnostics.CreateRequestFailedException(message.Response);
433switch (message.Response.Status)
438using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
440return Response.FromValue(value, message.Response);
443throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
460switch (message.Response.Status)
465using var document = JsonDocument.Parse(message.Response.ContentStream);
467return Response.FromValue(value, message.Response);
470throw _clientDiagnostics.CreateRequestFailedException(message.Response);
497switch (message.Response.Status)
502using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
504return Response.FromValue(value, message.Response);
507throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
517switch (message.Response.Status)
522using var document = JsonDocument.Parse(message.Response.ContentStream);
524return Response.FromValue(value, message.Response);
527throw _clientDiagnostics.CreateRequestFailedException(message.Response);
563switch (message.Response.Status)
568using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
570return Response.FromValue(value, message.Response);
573throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
595switch (message.Response.Status)
600using var document = JsonDocument.Parse(message.Response.ContentStream);
602return Response.FromValue(value, message.Response);
605throw _clientDiagnostics.CreateRequestFailedException(message.Response);
636switch (message.Response.Status)
641using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
643return Response.FromValue(value, message.Response);
646throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
663switch (message.Response.Status)
668using var document = JsonDocument.Parse(message.Response.ContentStream);
670return Response.FromValue(value, message.Response);
673throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VpnConnectionsRestOperations.cs (50)
92switch (message.Response.Status)
97using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
99return Response.FromValue(value, message.Response);
102return Response.FromValue((VpnConnectionData)null, message.Response);
104throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
131switch (message.Response.Status)
136using var document = JsonDocument.Parse(message.Response.ContentStream);
138return Response.FromValue(value, message.Response);
141return Response.FromValue((VpnConnectionData)null, message.Response);
143throw _clientDiagnostics.CreateRequestFailedException(message.Response);
201switch (message.Response.Status)
205return message.Response;
207throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
239switch (message.Response.Status)
243return message.Response;
245throw _clientDiagnostics.CreateRequestFailedException(message.Response);
294switch (message.Response.Status)
299return message.Response;
301throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
328switch (message.Response.Status)
333return message.Response;
335throw _clientDiagnostics.CreateRequestFailedException(message.Response);
393switch (message.Response.Status)
397return message.Response;
399throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
427switch (message.Response.Status)
431return message.Response;
433throw _clientDiagnostics.CreateRequestFailedException(message.Response);
491switch (message.Response.Status)
495return message.Response;
497throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
525switch (message.Response.Status)
529return message.Response;
531throw _clientDiagnostics.CreateRequestFailedException(message.Response);
574switch (message.Response.Status)
579using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
581return Response.FromValue(value, message.Response);
584throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
606switch (message.Response.Status)
611using var document = JsonDocument.Parse(message.Response.ContentStream);
613return Response.FromValue(value, message.Response);
616throw _clientDiagnostics.CreateRequestFailedException(message.Response);
657switch (message.Response.Status)
662using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
664return Response.FromValue(value, message.Response);
667throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
694switch (message.Response.Status)
699using var document = JsonDocument.Parse(message.Response.ContentStream);
701return Response.FromValue(value, message.Response);
704throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VpnGatewaysRestOperations.cs (78)
85switch (message.Response.Status)
90using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
92return Response.FromValue(value, message.Response);
95return Response.FromValue((VpnGatewayData)null, message.Response);
97throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
119switch (message.Response.Status)
124using var document = JsonDocument.Parse(message.Response.ContentStream);
126return Response.FromValue(value, message.Response);
129return Response.FromValue((VpnGatewayData)null, message.Response);
131throw _clientDiagnostics.CreateRequestFailedException(message.Response);
182switch (message.Response.Status)
186return message.Response;
188throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
215switch (message.Response.Status)
219return message.Response;
221throw _clientDiagnostics.CreateRequestFailedException(message.Response);
272switch (message.Response.Status)
276return message.Response;
278throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
305switch (message.Response.Status)
309return message.Response;
311throw _clientDiagnostics.CreateRequestFailedException(message.Response);
353switch (message.Response.Status)
358return message.Response;
360throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
382switch (message.Response.Status)
387return message.Response;
389throw _clientDiagnostics.CreateRequestFailedException(message.Response);
432switch (message.Response.Status)
436return message.Response;
438throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
460switch (message.Response.Status)
464return message.Response;
466throw _clientDiagnostics.CreateRequestFailedException(message.Response);
517switch (message.Response.Status)
521return message.Response;
523throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
546switch (message.Response.Status)
550return message.Response;
552throw _clientDiagnostics.CreateRequestFailedException(message.Response);
603switch (message.Response.Status)
607return message.Response;
609throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
632switch (message.Response.Status)
636return message.Response;
638throw _clientDiagnostics.CreateRequestFailedException(message.Response);
674switch (message.Response.Status)
679using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
681return Response.FromValue(value, message.Response);
684throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
701switch (message.Response.Status)
706using var document = JsonDocument.Parse(message.Response.ContentStream);
708return Response.FromValue(value, message.Response);
711throw _clientDiagnostics.CreateRequestFailedException(message.Response);
738switch (message.Response.Status)
743using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
745return Response.FromValue(value, message.Response);
748throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
758switch (message.Response.Status)
763using var document = JsonDocument.Parse(message.Response.ContentStream);
765return Response.FromValue(value, message.Response);
768throw _clientDiagnostics.CreateRequestFailedException(message.Response);
804switch (message.Response.Status)
809using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
811return Response.FromValue(value, message.Response);
814throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
836switch (message.Response.Status)
841using var document = JsonDocument.Parse(message.Response.ContentStream);
843return Response.FromValue(value, message.Response);
846throw _clientDiagnostics.CreateRequestFailedException(message.Response);
877switch (message.Response.Status)
882using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
884return Response.FromValue(value, message.Response);
887throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
904switch (message.Response.Status)
909using var document = JsonDocument.Parse(message.Response.ContentStream);
911return Response.FromValue(value, message.Response);
914throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VpnServerConfigurationsRestOperations.cs (62)
85switch (message.Response.Status)
90using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
92return Response.FromValue(value, message.Response);
95return Response.FromValue((VpnServerConfigurationData)null, message.Response);
97throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
119switch (message.Response.Status)
124using var document = JsonDocument.Parse(message.Response.ContentStream);
126return Response.FromValue(value, message.Response);
129return Response.FromValue((VpnServerConfigurationData)null, message.Response);
131throw _clientDiagnostics.CreateRequestFailedException(message.Response);
182switch (message.Response.Status)
186return message.Response;
188throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
215switch (message.Response.Status)
219return message.Response;
221throw _clientDiagnostics.CreateRequestFailedException(message.Response);
272switch (message.Response.Status)
277using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
279return Response.FromValue(value, message.Response);
282throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
309switch (message.Response.Status)
314using var document = JsonDocument.Parse(message.Response.ContentStream);
316return Response.FromValue(value, message.Response);
319throw _clientDiagnostics.CreateRequestFailedException(message.Response);
361switch (message.Response.Status)
366return message.Response;
368throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
390switch (message.Response.Status)
395return message.Response;
397throw _clientDiagnostics.CreateRequestFailedException(message.Response);
433switch (message.Response.Status)
438using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
440return Response.FromValue(value, message.Response);
443throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
460switch (message.Response.Status)
465using var document = JsonDocument.Parse(message.Response.ContentStream);
467return Response.FromValue(value, message.Response);
470throw _clientDiagnostics.CreateRequestFailedException(message.Response);
497switch (message.Response.Status)
502using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
504return Response.FromValue(value, message.Response);
507throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
517switch (message.Response.Status)
522using var document = JsonDocument.Parse(message.Response.ContentStream);
524return Response.FromValue(value, message.Response);
527throw _clientDiagnostics.CreateRequestFailedException(message.Response);
563switch (message.Response.Status)
568using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
570return Response.FromValue(value, message.Response);
573throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
595switch (message.Response.Status)
600using var document = JsonDocument.Parse(message.Response.ContentStream);
602return Response.FromValue(value, message.Response);
605throw _clientDiagnostics.CreateRequestFailedException(message.Response);
636switch (message.Response.Status)
641using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
643return Response.FromValue(value, message.Response);
646throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
663switch (message.Response.Status)
668using var document = JsonDocument.Parse(message.Response.ContentStream);
670return Response.FromValue(value, message.Response);
673throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VpnSiteLinksRestOperations.cs (24)
92switch (message.Response.Status)
97using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
99return Response.FromValue(value, message.Response);
102throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
129switch (message.Response.Status)
134using var document = JsonDocument.Parse(message.Response.ContentStream);
136return Response.FromValue(value, message.Response);
139throw _clientDiagnostics.CreateRequestFailedException(message.Response);
182switch (message.Response.Status)
187using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
189return Response.FromValue(value, message.Response);
192throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
214switch (message.Response.Status)
219using var document = JsonDocument.Parse(message.Response.ContentStream);
221return Response.FromValue(value, message.Response);
224throw _clientDiagnostics.CreateRequestFailedException(message.Response);
265switch (message.Response.Status)
270using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
272return Response.FromValue(value, message.Response);
275throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
302switch (message.Response.Status)
307using var document = JsonDocument.Parse(message.Response.ContentStream);
309return Response.FromValue(value, message.Response);
312throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\VpnSitesRestOperations.cs (62)
85switch (message.Response.Status)
90using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
92return Response.FromValue(value, message.Response);
95return Response.FromValue((VpnSiteData)null, message.Response);
97throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
119switch (message.Response.Status)
124using var document = JsonDocument.Parse(message.Response.ContentStream);
126return Response.FromValue(value, message.Response);
129return Response.FromValue((VpnSiteData)null, message.Response);
131throw _clientDiagnostics.CreateRequestFailedException(message.Response);
182switch (message.Response.Status)
186return message.Response;
188throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
215switch (message.Response.Status)
219return message.Response;
221throw _clientDiagnostics.CreateRequestFailedException(message.Response);
272switch (message.Response.Status)
277using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
279return Response.FromValue(value, message.Response);
282throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
309switch (message.Response.Status)
314using var document = JsonDocument.Parse(message.Response.ContentStream);
316return Response.FromValue(value, message.Response);
319throw _clientDiagnostics.CreateRequestFailedException(message.Response);
361switch (message.Response.Status)
366return message.Response;
368throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
390switch (message.Response.Status)
395return message.Response;
397throw _clientDiagnostics.CreateRequestFailedException(message.Response);
433switch (message.Response.Status)
438using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
440return Response.FromValue(value, message.Response);
443throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
460switch (message.Response.Status)
465using var document = JsonDocument.Parse(message.Response.ContentStream);
467return Response.FromValue(value, message.Response);
470throw _clientDiagnostics.CreateRequestFailedException(message.Response);
497switch (message.Response.Status)
502using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
504return Response.FromValue(value, message.Response);
507throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
517switch (message.Response.Status)
522using var document = JsonDocument.Parse(message.Response.ContentStream);
524return Response.FromValue(value, message.Response);
527throw _clientDiagnostics.CreateRequestFailedException(message.Response);
563switch (message.Response.Status)
568using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
570return Response.FromValue(value, message.Response);
573throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
595switch (message.Response.Status)
600using var document = JsonDocument.Parse(message.Response.ContentStream);
602return Response.FromValue(value, message.Response);
605throw _clientDiagnostics.CreateRequestFailedException(message.Response);
636switch (message.Response.Status)
641using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
643return Response.FromValue(value, message.Response);
646throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
663switch (message.Response.Status)
668using var document = JsonDocument.Parse(message.Response.ContentStream);
670return Response.FromValue(value, message.Response);
673throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\WebApplicationFirewallPoliciesRestOperations.cs (56)
79switch (message.Response.Status)
84using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
86return Response.FromValue(value, message.Response);
89throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
106switch (message.Response.Status)
111using var document = JsonDocument.Parse(message.Response.ContentStream);
113return Response.FromValue(value, message.Response);
116throw _clientDiagnostics.CreateRequestFailedException(message.Response);
143switch (message.Response.Status)
148using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
150return Response.FromValue(value, message.Response);
153throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
163switch (message.Response.Status)
168using var document = JsonDocument.Parse(message.Response.ContentStream);
170return Response.FromValue(value, message.Response);
173throw _clientDiagnostics.CreateRequestFailedException(message.Response);
215switch (message.Response.Status)
220using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
222return Response.FromValue(value, message.Response);
225return Response.FromValue((WebApplicationFirewallPolicyData)null, message.Response);
227throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
249switch (message.Response.Status)
254using var document = JsonDocument.Parse(message.Response.ContentStream);
256return Response.FromValue(value, message.Response);
259return Response.FromValue((WebApplicationFirewallPolicyData)null, message.Response);
261throw _clientDiagnostics.CreateRequestFailedException(message.Response);
312switch (message.Response.Status)
318using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
320return Response.FromValue(value, message.Response);
323throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
350switch (message.Response.Status)
356using var document = JsonDocument.Parse(message.Response.ContentStream);
358return Response.FromValue(value, message.Response);
361throw _clientDiagnostics.CreateRequestFailedException(message.Response);
403switch (message.Response.Status)
408return message.Response;
410throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
432switch (message.Response.Status)
437return message.Response;
439throw _clientDiagnostics.CreateRequestFailedException(message.Response);
475switch (message.Response.Status)
480using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
482return Response.FromValue(value, message.Response);
485throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
507switch (message.Response.Status)
512using var document = JsonDocument.Parse(message.Response.ContentStream);
514return Response.FromValue(value, message.Response);
517throw _clientDiagnostics.CreateRequestFailedException(message.Response);
548switch (message.Response.Status)
553using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
555return Response.FromValue(value, message.Response);
558throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
575switch (message.Response.Status)
580using var document = JsonDocument.Parse(message.Response.ContentStream);
582return Response.FromValue(value, message.Response);
585throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\WebCategoriesRestOperations.cs (24)
83switch (message.Response.Status)
88using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
90return Response.FromValue(value, message.Response);
93throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
111switch (message.Response.Status)
116using var document = JsonDocument.Parse(message.Response.ContentStream);
118return Response.FromValue(value, message.Response);
121throw _clientDiagnostics.CreateRequestFailedException(message.Response);
148switch (message.Response.Status)
153using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
155return Response.FromValue(value, message.Response);
158throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
168switch (message.Response.Status)
173using var document = JsonDocument.Parse(message.Response.ContentStream);
175return Response.FromValue(value, message.Response);
178throw _clientDiagnostics.CreateRequestFailedException(message.Response);
209switch (message.Response.Status)
214using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
216return Response.FromValue(value, message.Response);
219throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
236switch (message.Response.Status)
241using var document = JsonDocument.Parse(message.Response.ContentStream);
243return Response.FromValue(value, message.Response);
246throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Azure.ResourceManager.Resources (506)
Generated\RestOperations\ApplicationDefinitionsRestOperations.cs (38)
82switch (message.Response.Status)
87using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
89return Response.FromValue(value, message.Response);
92return Response.FromValue((ApplicationDefinitionData)null, message.Response);
94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
116switch (message.Response.Status)
121using var document = JsonDocument.Parse(message.Response.ContentStream);
123return Response.FromValue(value, message.Response);
126return Response.FromValue((ApplicationDefinitionData)null, message.Response);
128throw _clientDiagnostics.CreateRequestFailedException(message.Response);
170switch (message.Response.Status)
175return message.Response;
177throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
199switch (message.Response.Status)
204return message.Response;
206throw _clientDiagnostics.CreateRequestFailedException(message.Response);
257switch (message.Response.Status)
261return message.Response;
263throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
290switch (message.Response.Status)
294return message.Response;
296throw _clientDiagnostics.CreateRequestFailedException(message.Response);
332switch (message.Response.Status)
337using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
339return Response.FromValue(value, message.Response);
342throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
359switch (message.Response.Status)
364using var document = JsonDocument.Parse(message.Response.ContentStream);
366return Response.FromValue(value, message.Response);
369throw _clientDiagnostics.CreateRequestFailedException(message.Response);
405switch (message.Response.Status)
410using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
412return Response.FromValue(value, message.Response);
415throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
437switch (message.Response.Status)
442using var document = JsonDocument.Parse(message.Response.ContentStream);
444return Response.FromValue(value, message.Response);
447throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ApplicationsRestOperations.cs (68)
82switch (message.Response.Status)
87using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
89return Response.FromValue(value, message.Response);
92return Response.FromValue((ApplicationData)null, message.Response);
94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
116switch (message.Response.Status)
121using var document = JsonDocument.Parse(message.Response.ContentStream);
123return Response.FromValue(value, message.Response);
126return Response.FromValue((ApplicationData)null, message.Response);
128throw _clientDiagnostics.CreateRequestFailedException(message.Response);
170switch (message.Response.Status)
174return message.Response;
176throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
198switch (message.Response.Status)
202return message.Response;
204throw _clientDiagnostics.CreateRequestFailedException(message.Response);
255switch (message.Response.Status)
259return message.Response;
261throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
288switch (message.Response.Status)
292return message.Response;
294throw _clientDiagnostics.CreateRequestFailedException(message.Response);
344switch (message.Response.Status)
349using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
351return Response.FromValue(value, message.Response);
354throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
377switch (message.Response.Status)
382using var document = JsonDocument.Parse(message.Response.ContentStream);
384return Response.FromValue(value, message.Response);
387throw _clientDiagnostics.CreateRequestFailedException(message.Response);
423switch (message.Response.Status)
428using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
430return Response.FromValue(value, message.Response);
433throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
450switch (message.Response.Status)
455using var document = JsonDocument.Parse(message.Response.ContentStream);
457return Response.FromValue(value, message.Response);
460throw _clientDiagnostics.CreateRequestFailedException(message.Response);
487switch (message.Response.Status)
492using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
494return Response.FromValue(value, message.Response);
497throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
507switch (message.Response.Status)
512using var document = JsonDocument.Parse(message.Response.ContentStream);
514return Response.FromValue(value, message.Response);
517throw _clientDiagnostics.CreateRequestFailedException(message.Response);
560switch (message.Response.Status)
563return message.Response;
565throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
587switch (message.Response.Status)
590return message.Response;
592throw _clientDiagnostics.CreateRequestFailedException(message.Response);
628switch (message.Response.Status)
633using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
635return Response.FromValue(value, message.Response);
638throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
660switch (message.Response.Status)
665using var document = JsonDocument.Parse(message.Response.ContentStream);
667return Response.FromValue(value, message.Response);
670throw _clientDiagnostics.CreateRequestFailedException(message.Response);
701switch (message.Response.Status)
706using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
708return Response.FromValue(value, message.Response);
711throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
728switch (message.Response.Status)
733using var document = JsonDocument.Parse(message.Response.ContentStream);
735return Response.FromValue(value, message.Response);
738throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\DeploymentRestOperations.cs (26)
83switch (message.Response.Status)
88using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
90return Response.FromValue(value, message.Response);
93return Response.FromValue((DeploymentOperationData)null, message.Response);
95throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
122switch (message.Response.Status)
127using var document = JsonDocument.Parse(message.Response.ContentStream);
129return Response.FromValue(value, message.Response);
132return Response.FromValue((DeploymentOperationData)null, message.Response);
134throw _clientDiagnostics.CreateRequestFailedException(message.Response);
180switch (message.Response.Status)
185using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
187return Response.FromValue(value, message.Response);
190throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
213switch (message.Response.Status)
218using var document = JsonDocument.Parse(message.Response.ContentStream);
220return Response.FromValue(value, message.Response);
223throw _clientDiagnostics.CreateRequestFailedException(message.Response);
265switch (message.Response.Status)
270using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
272return Response.FromValue(value, message.Response);
275throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
303switch (message.Response.Status)
308using var document = JsonDocument.Parse(message.Response.ContentStream);
310return Response.FromValue(value, message.Response);
313throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\DeploymentScriptsRestOperations.cs (62)
92switch (message.Response.Status)
96return message.Response;
98throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
125switch (message.Response.Status)
129return message.Response;
131throw _clientDiagnostics.CreateRequestFailedException(message.Response);
187switch (message.Response.Status)
192using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
194return Response.FromValue(value, message.Response);
197throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
220switch (message.Response.Status)
225using var document = JsonDocument.Parse(message.Response.ContentStream);
227return Response.FromValue(value, message.Response);
230throw _clientDiagnostics.CreateRequestFailedException(message.Response);
272switch (message.Response.Status)
277using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
279return Response.FromValue(value, message.Response);
282return Response.FromValue((DeploymentScriptData)null, message.Response);
284throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
306switch (message.Response.Status)
311using var document = JsonDocument.Parse(message.Response.ContentStream);
313return Response.FromValue(value, message.Response);
316return Response.FromValue((DeploymentScriptData)null, message.Response);
318throw _clientDiagnostics.CreateRequestFailedException(message.Response);
360switch (message.Response.Status)
364return message.Response;
366throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
388switch (message.Response.Status)
392return message.Response;
394throw _clientDiagnostics.CreateRequestFailedException(message.Response);
421switch (message.Response.Status)
426using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
428return Response.FromValue(value, message.Response);
431throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
441switch (message.Response.Status)
446using var document = JsonDocument.Parse(message.Response.ContentStream);
448return Response.FromValue(value, message.Response);
451throw _clientDiagnostics.CreateRequestFailedException(message.Response);
487switch (message.Response.Status)
492using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
494return Response.FromValue(value, message.Response);
497throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
514switch (message.Response.Status)
519using var document = JsonDocument.Parse(message.Response.ContentStream);
521return Response.FromValue(value, message.Response);
524throw _clientDiagnostics.CreateRequestFailedException(message.Response);
555switch (message.Response.Status)
560using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
562return Response.FromValue(value, message.Response);
565throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
582switch (message.Response.Status)
587using var document = JsonDocument.Parse(message.Response.ContentStream);
589return Response.FromValue(value, message.Response);
592throw _clientDiagnostics.CreateRequestFailedException(message.Response);
628switch (message.Response.Status)
633using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
635return Response.FromValue(value, message.Response);
638throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
660switch (message.Response.Status)
665using var document = JsonDocument.Parse(message.Response.ContentStream);
667return Response.FromValue(value, message.Response);
670throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\DeploymentsRestOperations.cs (136)
76switch (message.Response.Status)
80return message.Response;
82throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
104switch (message.Response.Status)
108return message.Response;
110throw _clientDiagnostics.CreateRequestFailedException(message.Response);
150switch (message.Response.Status)
154return message.Response;
156throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
178switch (message.Response.Status)
182return message.Response;
184throw _clientDiagnostics.CreateRequestFailedException(message.Response);
233switch (message.Response.Status)
237return message.Response;
239throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
266switch (message.Response.Status)
270return message.Response;
272throw _clientDiagnostics.CreateRequestFailedException(message.Response);
312switch (message.Response.Status)
317using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
319return Response.FromValue(value, message.Response);
322return Response.FromValue((DeploymentExtendedData)null, message.Response);
324throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
346switch (message.Response.Status)
351using var document = JsonDocument.Parse(message.Response.ContentStream);
353return Response.FromValue(value, message.Response);
356return Response.FromValue((DeploymentExtendedData)null, message.Response);
358throw _clientDiagnostics.CreateRequestFailedException(message.Response);
399switch (message.Response.Status)
402return message.Response;
404throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
426switch (message.Response.Status)
429return message.Response;
431throw _clientDiagnostics.CreateRequestFailedException(message.Response);
481switch (message.Response.Status)
486return message.Response;
488throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
515switch (message.Response.Status)
520return message.Response;
522throw _clientDiagnostics.CreateRequestFailedException(message.Response);
563switch (message.Response.Status)
568using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
570return Response.FromValue(value, message.Response);
573throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
595switch (message.Response.Status)
600using var document = JsonDocument.Parse(message.Response.ContentStream);
602return Response.FromValue(value, message.Response);
605throw _clientDiagnostics.CreateRequestFailedException(message.Response);
649switch (message.Response.Status)
654using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
656return Response.FromValue(value, message.Response);
659throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
678switch (message.Response.Status)
683using var document = JsonDocument.Parse(message.Response.ContentStream);
685return Response.FromValue(value, message.Response);
688throw _clientDiagnostics.CreateRequestFailedException(message.Response);
721switch (message.Response.Status)
726using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
728return Response.FromValue(value, message.Response);
731return Response.FromValue((DeploymentExtendedData)null, message.Response);
733throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
750switch (message.Response.Status)
755using var document = JsonDocument.Parse(message.Response.ContentStream);
757return Response.FromValue(value, message.Response);
760return Response.FromValue((DeploymentExtendedData)null, message.Response);
762throw _clientDiagnostics.CreateRequestFailedException(message.Response);
811switch (message.Response.Status)
815return message.Response;
817throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
844switch (message.Response.Status)
848return message.Response;
850throw _clientDiagnostics.CreateRequestFailedException(message.Response);
890switch (message.Response.Status)
895using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
897return Response.FromValue(value, message.Response);
900return Response.FromValue((DeploymentExtendedData)null, message.Response);
902throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
924switch (message.Response.Status)
929using var document = JsonDocument.Parse(message.Response.ContentStream);
931return Response.FromValue(value, message.Response);
934return Response.FromValue((DeploymentExtendedData)null, message.Response);
936throw _clientDiagnostics.CreateRequestFailedException(message.Response);
992switch (message.Response.Status)
996return message.Response;
998throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1030switch (message.Response.Status)
1034return message.Response;
1036throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1076switch (message.Response.Status)
1081using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1083return Response.FromValue(value, message.Response);
1086return Response.FromValue((DeploymentExtendedData)null, message.Response);
1088throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1110switch (message.Response.Status)
1115using var document = JsonDocument.Parse(message.Response.ContentStream);
1117return Response.FromValue(value, message.Response);
1120return Response.FromValue((DeploymentExtendedData)null, message.Response);
1122throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1177switch (message.Response.Status)
1181return message.Response;
1183throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1211switch (message.Response.Status)
1215return message.Response;
1217throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1264switch (message.Response.Status)
1269using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1271return Response.FromValue(value, message.Response);
1274return Response.FromValue((DeploymentExtendedData)null, message.Response);
1276throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1303switch (message.Response.Status)
1308using var document = JsonDocument.Parse(message.Response.ContentStream);
1310return Response.FromValue(value, message.Response);
1313return Response.FromValue((DeploymentExtendedData)null, message.Response);
1315throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1377switch (message.Response.Status)
1381return message.Response;
1383throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1416switch (message.Response.Status)
1420return message.Response;
1422throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1458switch (message.Response.Status)
1463using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1465return Response.FromValue(value, message.Response);
1468throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1485switch (message.Response.Status)
1490using var document = JsonDocument.Parse(message.Response.ContentStream);
1492return Response.FromValue(value, message.Response);
1495throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1533switch (message.Response.Status)
1538using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1540return Response.FromValue(value, message.Response);
1543throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1567switch (message.Response.Status)
1572using var document = JsonDocument.Parse(message.Response.ContentStream);
1574return Response.FromValue(value, message.Response);
1577throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\JitRequestsRestOperations.cs (46)
83switch (message.Response.Status)
88using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
90return Response.FromValue(value, message.Response);
93return Response.FromValue((JitRequestDefinitionData)null, message.Response);
95throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
117switch (message.Response.Status)
122using var document = JsonDocument.Parse(message.Response.ContentStream);
124return Response.FromValue(value, message.Response);
127return Response.FromValue((JitRequestDefinitionData)null, message.Response);
129throw _clientDiagnostics.CreateRequestFailedException(message.Response);
180switch (message.Response.Status)
184return message.Response;
186throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
213switch (message.Response.Status)
217return message.Response;
219throw _clientDiagnostics.CreateRequestFailedException(message.Response);
275switch (message.Response.Status)
280using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
282return Response.FromValue(value, message.Response);
285throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
308switch (message.Response.Status)
313using var document = JsonDocument.Parse(message.Response.ContentStream);
315return Response.FromValue(value, message.Response);
318throw _clientDiagnostics.CreateRequestFailedException(message.Response);
360switch (message.Response.Status)
364return message.Response;
366throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
388switch (message.Response.Status)
392return message.Response;
394throw _clientDiagnostics.CreateRequestFailedException(message.Response);
421switch (message.Response.Status)
426using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
428return Response.FromValue(value, message.Response);
431throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
441switch (message.Response.Status)
446using var document = JsonDocument.Parse(message.Response.ContentStream);
448return Response.FromValue(value, message.Response);
451throw _clientDiagnostics.CreateRequestFailedException(message.Response);
487switch (message.Response.Status)
492using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
494return Response.FromValue(value, message.Response);
497throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
514switch (message.Response.Status)
519using var document = JsonDocument.Parse(message.Response.ContentStream);
521return Response.FromValue(value, message.Response);
524throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\TemplateSpecsRestOperations.cs (64)
92switch (message.Response.Status)
98using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
100return Response.FromValue(value, message.Response);
103throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
130switch (message.Response.Status)
136using var document = JsonDocument.Parse(message.Response.ContentStream);
138return Response.FromValue(value, message.Response);
141throw _clientDiagnostics.CreateRequestFailedException(message.Response);
197switch (message.Response.Status)
202using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
204return Response.FromValue(value, message.Response);
207throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
230switch (message.Response.Status)
235using var document = JsonDocument.Parse(message.Response.ContentStream);
237return Response.FromValue(value, message.Response);
240throw _clientDiagnostics.CreateRequestFailedException(message.Response);
287switch (message.Response.Status)
292using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
294return Response.FromValue(value, message.Response);
297return Response.FromValue((TemplateSpecData)null, message.Response);
299throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
322switch (message.Response.Status)
327using var document = JsonDocument.Parse(message.Response.ContentStream);
329return Response.FromValue(value, message.Response);
332return Response.FromValue((TemplateSpecData)null, message.Response);
334throw _clientDiagnostics.CreateRequestFailedException(message.Response);
376switch (message.Response.Status)
380return message.Response;
382throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
404switch (message.Response.Status)
408return message.Response;
410throw _clientDiagnostics.CreateRequestFailedException(message.Response);
442switch (message.Response.Status)
447using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
449return Response.FromValue(value, message.Response);
452throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
463switch (message.Response.Status)
468using var document = JsonDocument.Parse(message.Response.ContentStream);
470return Response.FromValue(value, message.Response);
473throw _clientDiagnostics.CreateRequestFailedException(message.Response);
514switch (message.Response.Status)
519using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
521return Response.FromValue(value, message.Response);
524throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
542switch (message.Response.Status)
547using var document = JsonDocument.Parse(message.Response.ContentStream);
549return Response.FromValue(value, message.Response);
552throw _clientDiagnostics.CreateRequestFailedException(message.Response);
584switch (message.Response.Status)
589using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
591return Response.FromValue(value, message.Response);
594throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
612switch (message.Response.Status)
617using var document = JsonDocument.Parse(message.Response.ContentStream);
619return Response.FromValue(value, message.Response);
622throw _clientDiagnostics.CreateRequestFailedException(message.Response);
659switch (message.Response.Status)
664using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
666return Response.FromValue(value, message.Response);
669throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
692switch (message.Response.Status)
697using var document = JsonDocument.Parse(message.Response.ContentStream);
699return Response.FromValue(value, message.Response);
702throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\TemplateSpecVersionsRestOperations.cs (48)
99switch (message.Response.Status)
105using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
107return Response.FromValue(value, message.Response);
110throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
142switch (message.Response.Status)
148using var document = JsonDocument.Parse(message.Response.ContentStream);
150return Response.FromValue(value, message.Response);
153throw _clientDiagnostics.CreateRequestFailedException(message.Response);
216switch (message.Response.Status)
221using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
223return Response.FromValue(value, message.Response);
226throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
254switch (message.Response.Status)
259using var document = JsonDocument.Parse(message.Response.ContentStream);
261return Response.FromValue(value, message.Response);
264throw _clientDiagnostics.CreateRequestFailedException(message.Response);
313switch (message.Response.Status)
318using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
320return Response.FromValue(value, message.Response);
323return Response.FromValue((TemplateSpecVersionData)null, message.Response);
325throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
352switch (message.Response.Status)
357using var document = JsonDocument.Parse(message.Response.ContentStream);
359return Response.FromValue(value, message.Response);
362return Response.FromValue((TemplateSpecVersionData)null, message.Response);
364throw _clientDiagnostics.CreateRequestFailedException(message.Response);
413switch (message.Response.Status)
417return message.Response;
419throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
446switch (message.Response.Status)
450return message.Response;
452throw _clientDiagnostics.CreateRequestFailedException(message.Response);
495switch (message.Response.Status)
500using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
502return Response.FromValue(value, message.Response);
505throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
527switch (message.Response.Status)
532using var document = JsonDocument.Parse(message.Response.ContentStream);
534return Response.FromValue(value, message.Response);
537throw _clientDiagnostics.CreateRequestFailedException(message.Response);
578switch (message.Response.Status)
583using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
585return Response.FromValue(value, message.Response);
588throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
615switch (message.Response.Status)
620using var document = JsonDocument.Parse(message.Response.ContentStream);
622return Response.FromValue(value, message.Response);
625throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Azure.ResourceManager.Sql (3292)
Generated\BackupShortTermRetentionPoliciesRestOperations.cs (36)
93switch (message.Response.Status)
98using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
100return Response.FromValue(value, message.Response);
103throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
131switch (message.Response.Status)
136using var document = JsonDocument.Parse(message.Response.ContentStream);
138return Response.FromValue(value, message.Response);
141throw _clientDiagnostics.CreateRequestFailedException(message.Response);
201switch (message.Response.Status)
205return message.Response;
207throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
240switch (message.Response.Status)
244return message.Response;
246throw _clientDiagnostics.CreateRequestFailedException(message.Response);
306switch (message.Response.Status)
310return message.Response;
312throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
345switch (message.Response.Status)
349return message.Response;
351throw _clientDiagnostics.CreateRequestFailedException(message.Response);
400switch (message.Response.Status)
405using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
407return Response.FromValue(value, message.Response);
410throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
437switch (message.Response.Status)
442using var document = JsonDocument.Parse(message.Response.ContentStream);
444return Response.FromValue(value, message.Response);
447throw _clientDiagnostics.CreateRequestFailedException(message.Response);
492switch (message.Response.Status)
497using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
499return Response.FromValue(value, message.Response);
502throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
534switch (message.Response.Status)
539using var document = JsonDocument.Parse(message.Response.ContentStream);
541return Response.FromValue(value, message.Response);
544throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\DatabaseBlobAuditingPoliciesRestOperations.cs (32)
92switch (message.Response.Status)
97using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
99return Response.FromValue(value, message.Response);
102throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
129switch (message.Response.Status)
134using var document = JsonDocument.Parse(message.Response.ContentStream);
136return Response.FromValue(value, message.Response);
139throw _clientDiagnostics.CreateRequestFailedException(message.Response);
198switch (message.Response.Status)
204using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
206return Response.FromValue(value, message.Response);
209throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
241switch (message.Response.Status)
247using var document = JsonDocument.Parse(message.Response.ContentStream);
249return Response.FromValue(value, message.Response);
252throw _clientDiagnostics.CreateRequestFailedException(message.Response);
301switch (message.Response.Status)
306using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
308return Response.FromValue(value, message.Response);
311throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
338switch (message.Response.Status)
343using var document = JsonDocument.Parse(message.Response.ContentStream);
345return Response.FromValue(value, message.Response);
348throw _clientDiagnostics.CreateRequestFailedException(message.Response);
393switch (message.Response.Status)
398using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
400return Response.FromValue(value, message.Response);
403throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
435switch (message.Response.Status)
440using var document = JsonDocument.Parse(message.Response.ContentStream);
442return Response.FromValue(value, message.Response);
445throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\DatabasesRestOperations.cs (122)
93switch (message.Response.Status)
97return message.Response;
99throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
126switch (message.Response.Status)
130return message.Response;
132throw _clientDiagnostics.CreateRequestFailedException(message.Response);
192switch (message.Response.Status)
196return message.Response;
198throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
231switch (message.Response.Status)
235return message.Response;
237throw _clientDiagnostics.CreateRequestFailedException(message.Response);
295switch (message.Response.Status)
299return message.Response;
301throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
333switch (message.Response.Status)
337return message.Response;
339throw _clientDiagnostics.CreateRequestFailedException(message.Response);
394switch (message.Response.Status)
399using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
401return Response.FromValue(value, message.Response);
404throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
436switch (message.Response.Status)
441using var document = JsonDocument.Parse(message.Response.ContentStream);
443return Response.FromValue(value, message.Response);
446throw _clientDiagnostics.CreateRequestFailedException(message.Response);
495switch (message.Response.Status)
500using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
502return Response.FromValue(value, message.Response);
505throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
532switch (message.Response.Status)
537using var document = JsonDocument.Parse(message.Response.ContentStream);
539return Response.FromValue(value, message.Response);
542throw _clientDiagnostics.CreateRequestFailedException(message.Response);
584switch (message.Response.Status)
589using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
591return Response.FromValue(value, message.Response);
594throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
616switch (message.Response.Status)
621using var document = JsonDocument.Parse(message.Response.ContentStream);
623return Response.FromValue(value, message.Response);
626throw _clientDiagnostics.CreateRequestFailedException(message.Response);
674switch (message.Response.Status)
679using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
681return Response.FromValue(value, message.Response);
684throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
711switch (message.Response.Status)
716using var document = JsonDocument.Parse(message.Response.ContentStream);
718return Response.FromValue(value, message.Response);
721throw _clientDiagnostics.CreateRequestFailedException(message.Response);
778switch (message.Response.Status)
783return message.Response;
785throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
817switch (message.Response.Status)
822return message.Response;
824throw _clientDiagnostics.CreateRequestFailedException(message.Response);
871switch (message.Response.Status)
876return message.Response;
878throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
905switch (message.Response.Status)
910return message.Response;
912throw _clientDiagnostics.CreateRequestFailedException(message.Response);
969switch (message.Response.Status)
973return message.Response;
975throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1007switch (message.Response.Status)
1011return message.Response;
1013throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1062switch (message.Response.Status)
1067using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1069return Response.FromValue(value, message.Response);
1072throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1099switch (message.Response.Status)
1104using var document = JsonDocument.Parse(message.Response.ContentStream);
1106return Response.FromValue(value, message.Response);
1109throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1158switch (message.Response.Status)
1162return message.Response;
1164throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1191switch (message.Response.Status)
1195return message.Response;
1197throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1246switch (message.Response.Status)
1250return message.Response;
1252throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1279switch (message.Response.Status)
1283return message.Response;
1285throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1333switch (message.Response.Status)
1337return message.Response;
1339throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1366switch (message.Response.Status)
1370return message.Response;
1372throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1429switch (message.Response.Status)
1432return message.Response;
1434throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1466switch (message.Response.Status)
1469return message.Response;
1471throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1524switch (message.Response.Status)
1528return message.Response;
1530throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1558switch (message.Response.Status)
1562return message.Response;
1564throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1604switch (message.Response.Status)
1609using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1611return Response.FromValue(value, message.Response);
1614throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1641switch (message.Response.Status)
1646using var document = JsonDocument.Parse(message.Response.ContentStream);
1648return Response.FromValue(value, message.Response);
1651throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1696switch (message.Response.Status)
1701using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1703return Response.FromValue(value, message.Response);
1706throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1738switch (message.Response.Status)
1743using var document = JsonDocument.Parse(message.Response.ContentStream);
1745return Response.FromValue(value, message.Response);
1748throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\DatabaseVulnerabilityAssessmentScansRestOperations.cs (38)
94switch (message.Response.Status)
99using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
101return Response.FromValue(value, message.Response);
104throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
132switch (message.Response.Status)
137using var document = JsonDocument.Parse(message.Response.ContentStream);
139return Response.FromValue(value, message.Response);
142throw _clientDiagnostics.CreateRequestFailedException(message.Response);
200switch (message.Response.Status)
205using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
207return Response.FromValue(value, message.Response);
210throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
243switch (message.Response.Status)
248using var document = JsonDocument.Parse(message.Response.ContentStream);
250return Response.FromValue(value, message.Response);
253throw _clientDiagnostics.CreateRequestFailedException(message.Response);
311switch (message.Response.Status)
315return message.Response;
317throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
350switch (message.Response.Status)
354return message.Response;
356throw _clientDiagnostics.CreateRequestFailedException(message.Response);
415switch (message.Response.Status)
421using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
423return Response.FromValue(value, message.Response);
426throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
459switch (message.Response.Status)
465using var document = JsonDocument.Parse(message.Response.ContentStream);
467return Response.FromValue(value, message.Response);
470throw _clientDiagnostics.CreateRequestFailedException(message.Response);
516switch (message.Response.Status)
521using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
523return Response.FromValue(value, message.Response);
526throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
559switch (message.Response.Status)
564using var document = JsonDocument.Parse(message.Response.ContentStream);
566return Response.FromValue(value, message.Response);
569throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\DatabaseVulnerabilityAssessmentsRestOperations.cs (38)
93switch (message.Response.Status)
98using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
100return Response.FromValue(value, message.Response);
103throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
131switch (message.Response.Status)
136using var document = JsonDocument.Parse(message.Response.ContentStream);
138return Response.FromValue(value, message.Response);
141throw _clientDiagnostics.CreateRequestFailedException(message.Response);
201switch (message.Response.Status)
207using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
209return Response.FromValue(value, message.Response);
212throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
245switch (message.Response.Status)
251using var document = JsonDocument.Parse(message.Response.ContentStream);
253return Response.FromValue(value, message.Response);
256throw _clientDiagnostics.CreateRequestFailedException(message.Response);
306switch (message.Response.Status)
309return message.Response;
311throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
339switch (message.Response.Status)
342return message.Response;
344throw _clientDiagnostics.CreateRequestFailedException(message.Response);
393switch (message.Response.Status)
398using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
400return Response.FromValue(value, message.Response);
403throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
430switch (message.Response.Status)
435using var document = JsonDocument.Parse(message.Response.ContentStream);
437return Response.FromValue(value, message.Response);
440throw _clientDiagnostics.CreateRequestFailedException(message.Response);
485switch (message.Response.Status)
490using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
492return Response.FromValue(value, message.Response);
495throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
527switch (message.Response.Status)
532using var document = JsonDocument.Parse(message.Response.ContentStream);
534return Response.FromValue(value, message.Response);
537throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ElasticPoolsRestOperations.cs (64)
97switch (message.Response.Status)
102using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
104return Response.FromValue(value, message.Response);
107throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
139switch (message.Response.Status)
144using var document = JsonDocument.Parse(message.Response.ContentStream);
146return Response.FromValue(value, message.Response);
149throw _clientDiagnostics.CreateRequestFailedException(message.Response);
198switch (message.Response.Status)
203using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
205return Response.FromValue(value, message.Response);
208throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
235switch (message.Response.Status)
240using var document = JsonDocument.Parse(message.Response.ContentStream);
242return Response.FromValue(value, message.Response);
245throw _clientDiagnostics.CreateRequestFailedException(message.Response);
292switch (message.Response.Status)
297using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
299return Response.FromValue(value, message.Response);
302throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
325switch (message.Response.Status)
330using var document = JsonDocument.Parse(message.Response.ContentStream);
332return Response.FromValue(value, message.Response);
335throw _clientDiagnostics.CreateRequestFailedException(message.Response);
383switch (message.Response.Status)
388using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
390return Response.FromValue(value, message.Response);
393throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
420switch (message.Response.Status)
425using var document = JsonDocument.Parse(message.Response.ContentStream);
427return Response.FromValue(value, message.Response);
430throw _clientDiagnostics.CreateRequestFailedException(message.Response);
487switch (message.Response.Status)
492return message.Response;
494throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
526switch (message.Response.Status)
531return message.Response;
533throw _clientDiagnostics.CreateRequestFailedException(message.Response);
580switch (message.Response.Status)
585return message.Response;
587throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
614switch (message.Response.Status)
619return message.Response;
621throw _clientDiagnostics.CreateRequestFailedException(message.Response);
678switch (message.Response.Status)
682return message.Response;
684throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
716switch (message.Response.Status)
720return message.Response;
722throw _clientDiagnostics.CreateRequestFailedException(message.Response);
770switch (message.Response.Status)
774return message.Response;
776throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
803switch (message.Response.Status)
807return message.Response;
809throw _clientDiagnostics.CreateRequestFailedException(message.Response);
850switch (message.Response.Status)
855using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
857return Response.FromValue(value, message.Response);
860throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
888switch (message.Response.Status)
893using var document = JsonDocument.Parse(message.Response.ContentStream);
895return Response.FromValue(value, message.Response);
898throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\EncryptionProtectorsRestOperations.cs (36)
86switch (message.Response.Status)
90return message.Response;
92throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
115switch (message.Response.Status)
119return message.Response;
121throw _clientDiagnostics.CreateRequestFailedException(message.Response);
163switch (message.Response.Status)
168using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
170return Response.FromValue(value, message.Response);
173throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
195switch (message.Response.Status)
200using var document = JsonDocument.Parse(message.Response.ContentStream);
202return Response.FromValue(value, message.Response);
205throw _clientDiagnostics.CreateRequestFailedException(message.Response);
249switch (message.Response.Status)
254using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
256return Response.FromValue(value, message.Response);
259throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
282switch (message.Response.Status)
287using var document = JsonDocument.Parse(message.Response.ContentStream);
289return Response.FromValue(value, message.Response);
292throw _clientDiagnostics.CreateRequestFailedException(message.Response);
345switch (message.Response.Status)
349return message.Response;
351throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
379switch (message.Response.Status)
383return message.Response;
385throw _clientDiagnostics.CreateRequestFailedException(message.Response);
425switch (message.Response.Status)
430using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
432return Response.FromValue(value, message.Response);
435throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
462switch (message.Response.Status)
467using var document = JsonDocument.Parse(message.Response.ContentStream);
469return Response.FromValue(value, message.Response);
472throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ExtendedDatabaseBlobAuditingPoliciesRestOperations.cs (32)
92switch (message.Response.Status)
97using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
99return Response.FromValue(value, message.Response);
102throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
129switch (message.Response.Status)
134using var document = JsonDocument.Parse(message.Response.ContentStream);
136return Response.FromValue(value, message.Response);
139throw _clientDiagnostics.CreateRequestFailedException(message.Response);
198switch (message.Response.Status)
204using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
206return Response.FromValue(value, message.Response);
209throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
241switch (message.Response.Status)
247using var document = JsonDocument.Parse(message.Response.ContentStream);
249return Response.FromValue(value, message.Response);
252throw _clientDiagnostics.CreateRequestFailedException(message.Response);
301switch (message.Response.Status)
306using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
308return Response.FromValue(value, message.Response);
311throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
338switch (message.Response.Status)
343using var document = JsonDocument.Parse(message.Response.ContentStream);
345return Response.FromValue(value, message.Response);
348throw _clientDiagnostics.CreateRequestFailedException(message.Response);
393switch (message.Response.Status)
398using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
400return Response.FromValue(value, message.Response);
403throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
435switch (message.Response.Status)
440using var document = JsonDocument.Parse(message.Response.ContentStream);
442return Response.FromValue(value, message.Response);
445throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ExtendedServerBlobAuditingPoliciesRestOperations.cs (30)
85switch (message.Response.Status)
90using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
92return Response.FromValue(value, message.Response);
95throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
117switch (message.Response.Status)
122using var document = JsonDocument.Parse(message.Response.ContentStream);
124return Response.FromValue(value, message.Response);
127throw _clientDiagnostics.CreateRequestFailedException(message.Response);
179switch (message.Response.Status)
183return message.Response;
185throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
212switch (message.Response.Status)
216return message.Response;
218throw _clientDiagnostics.CreateRequestFailedException(message.Response);
260switch (message.Response.Status)
265using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
267return Response.FromValue(value, message.Response);
270throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
292switch (message.Response.Status)
297using var document = JsonDocument.Parse(message.Response.ContentStream);
299return Response.FromValue(value, message.Response);
302throw _clientDiagnostics.CreateRequestFailedException(message.Response);
342switch (message.Response.Status)
347using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
349return Response.FromValue(value, message.Response);
352throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
379switch (message.Response.Status)
384using var document = JsonDocument.Parse(message.Response.ContentStream);
386return Response.FromValue(value, message.Response);
389throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\FailoverGroupsRestOperations.cs (54)
90switch (message.Response.Status)
95using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
97return Response.FromValue(value, message.Response);
100throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
127switch (message.Response.Status)
132using var document = JsonDocument.Parse(message.Response.ContentStream);
134return Response.FromValue(value, message.Response);
137throw _clientDiagnostics.CreateRequestFailedException(message.Response);
194switch (message.Response.Status)
199return message.Response;
201throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
233switch (message.Response.Status)
238return message.Response;
240throw _clientDiagnostics.CreateRequestFailedException(message.Response);
287switch (message.Response.Status)
292return message.Response;
294throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
321switch (message.Response.Status)
326return message.Response;
328throw _clientDiagnostics.CreateRequestFailedException(message.Response);
385switch (message.Response.Status)
389return message.Response;
391throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
423switch (message.Response.Status)
427return message.Response;
429throw _clientDiagnostics.CreateRequestFailedException(message.Response);
471switch (message.Response.Status)
476using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
478return Response.FromValue(value, message.Response);
481throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
503switch (message.Response.Status)
508using var document = JsonDocument.Parse(message.Response.ContentStream);
510return Response.FromValue(value, message.Response);
513throw _clientDiagnostics.CreateRequestFailedException(message.Response);
562switch (message.Response.Status)
566return message.Response;
568throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
595switch (message.Response.Status)
599return message.Response;
601throw _clientDiagnostics.CreateRequestFailedException(message.Response);
650switch (message.Response.Status)
654return message.Response;
656throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
683switch (message.Response.Status)
687return message.Response;
689throw _clientDiagnostics.CreateRequestFailedException(message.Response);
729switch (message.Response.Status)
734using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
736return Response.FromValue(value, message.Response);
739throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
766switch (message.Response.Status)
771using var document = JsonDocument.Parse(message.Response.ContentStream);
773return Response.FromValue(value, message.Response);
776throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\FirewallRulesRestOperations.cs (30)
99switch (message.Response.Status)
105using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
107return Response.FromValue(value, message.Response);
110throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
142switch (message.Response.Status)
148using var document = JsonDocument.Parse(message.Response.ContentStream);
150return Response.FromValue(value, message.Response);
153throw _clientDiagnostics.CreateRequestFailedException(message.Response);
200switch (message.Response.Status)
204return message.Response;
206throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
233switch (message.Response.Status)
237return message.Response;
239throw _clientDiagnostics.CreateRequestFailedException(message.Response);
287switch (message.Response.Status)
292using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
294return Response.FromValue(value, message.Response);
297throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
324switch (message.Response.Status)
329using var document = JsonDocument.Parse(message.Response.ContentStream);
331return Response.FromValue(value, message.Response);
334throw _clientDiagnostics.CreateRequestFailedException(message.Response);
376switch (message.Response.Status)
381using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
383return Response.FromValue(value, message.Response);
386throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
408switch (message.Response.Status)
413using var document = JsonDocument.Parse(message.Response.ContentStream);
415return Response.FromValue(value, message.Response);
418throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\GeoBackupPoliciesRestOperations.cs (24)
102switch (message.Response.Status)
108using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
110return Response.FromValue(value, message.Response);
113throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
146switch (message.Response.Status)
152using var document = JsonDocument.Parse(message.Response.ContentStream);
154return Response.FromValue(value, message.Response);
157throw _clientDiagnostics.CreateRequestFailedException(message.Response);
208switch (message.Response.Status)
213using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
215return Response.FromValue(value, message.Response);
218throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
246switch (message.Response.Status)
251using var document = JsonDocument.Parse(message.Response.ContentStream);
253return Response.FromValue(value, message.Response);
256throw _clientDiagnostics.CreateRequestFailedException(message.Response);
305switch (message.Response.Status)
310using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
312return Response.FromValue(value, message.Response);
315throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
342switch (message.Response.Status)
347using var document = JsonDocument.Parse(message.Response.ContentStream);
349return Response.FromValue(value, message.Response);
352throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\InstanceFailoverGroupsRestOperations.cs (48)
90switch (message.Response.Status)
95using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
97return Response.FromValue(value, message.Response);
100throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
127switch (message.Response.Status)
132using var document = JsonDocument.Parse(message.Response.ContentStream);
134return Response.FromValue(value, message.Response);
137throw _clientDiagnostics.CreateRequestFailedException(message.Response);
194switch (message.Response.Status)
199return message.Response;
201throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
233switch (message.Response.Status)
238return message.Response;
240throw _clientDiagnostics.CreateRequestFailedException(message.Response);
287switch (message.Response.Status)
292return message.Response;
294throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
321switch (message.Response.Status)
326return message.Response;
328throw _clientDiagnostics.CreateRequestFailedException(message.Response);
370switch (message.Response.Status)
375using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
377return Response.FromValue(value, message.Response);
380throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
402switch (message.Response.Status)
407using var document = JsonDocument.Parse(message.Response.ContentStream);
409return Response.FromValue(value, message.Response);
412throw _clientDiagnostics.CreateRequestFailedException(message.Response);
461switch (message.Response.Status)
465return message.Response;
467throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
494switch (message.Response.Status)
498return message.Response;
500throw _clientDiagnostics.CreateRequestFailedException(message.Response);
549switch (message.Response.Status)
553return message.Response;
555throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
582switch (message.Response.Status)
586return message.Response;
588throw _clientDiagnostics.CreateRequestFailedException(message.Response);
628switch (message.Response.Status)
633using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
635return Response.FromValue(value, message.Response);
638throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
665switch (message.Response.Status)
670using var document = JsonDocument.Parse(message.Response.ContentStream);
672return Response.FromValue(value, message.Response);
675throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\InstancePoolsRestOperations.cs (58)
83switch (message.Response.Status)
88using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
90return Response.FromValue(value, message.Response);
93throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
115switch (message.Response.Status)
120using var document = JsonDocument.Parse(message.Response.ContentStream);
122return Response.FromValue(value, message.Response);
125throw _clientDiagnostics.CreateRequestFailedException(message.Response);
175switch (message.Response.Status)
180return message.Response;
182throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
209switch (message.Response.Status)
214return message.Response;
216throw _clientDiagnostics.CreateRequestFailedException(message.Response);
256switch (message.Response.Status)
261return message.Response;
263throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
285switch (message.Response.Status)
290return message.Response;
292throw _clientDiagnostics.CreateRequestFailedException(message.Response);
342switch (message.Response.Status)
346return message.Response;
348throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
375switch (message.Response.Status)
379return message.Response;
381throw _clientDiagnostics.CreateRequestFailedException(message.Response);
416switch (message.Response.Status)
421using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
423return Response.FromValue(value, message.Response);
426throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
443switch (message.Response.Status)
448using var document = JsonDocument.Parse(message.Response.ContentStream);
450return Response.FromValue(value, message.Response);
453throw _clientDiagnostics.CreateRequestFailedException(message.Response);
479switch (message.Response.Status)
484using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
486return Response.FromValue(value, message.Response);
489throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
499switch (message.Response.Status)
504using var document = JsonDocument.Parse(message.Response.ContentStream);
506return Response.FromValue(value, message.Response);
509throw _clientDiagnostics.CreateRequestFailedException(message.Response);
544switch (message.Response.Status)
549using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
551return Response.FromValue(value, message.Response);
554throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
576switch (message.Response.Status)
581using var document = JsonDocument.Parse(message.Response.ContentStream);
583return Response.FromValue(value, message.Response);
586throw _clientDiagnostics.CreateRequestFailedException(message.Response);
616switch (message.Response.Status)
621using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
623return Response.FromValue(value, message.Response);
626throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
643switch (message.Response.Status)
648using var document = JsonDocument.Parse(message.Response.ContentStream);
650return Response.FromValue(value, message.Response);
653throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\JobAgentsRestOperations.cs (42)
84switch (message.Response.Status)
89using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
91return Response.FromValue(value, message.Response);
94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
116switch (message.Response.Status)
121using var document = JsonDocument.Parse(message.Response.ContentStream);
123return Response.FromValue(value, message.Response);
126throw _clientDiagnostics.CreateRequestFailedException(message.Response);
174switch (message.Response.Status)
179using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
181return Response.FromValue(value, message.Response);
184throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
211switch (message.Response.Status)
216using var document = JsonDocument.Parse(message.Response.ContentStream);
218return Response.FromValue(value, message.Response);
221throw _clientDiagnostics.CreateRequestFailedException(message.Response);
278switch (message.Response.Status)
283return message.Response;
285throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
317switch (message.Response.Status)
322return message.Response;
324throw _clientDiagnostics.CreateRequestFailedException(message.Response);
371switch (message.Response.Status)
376return message.Response;
378throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
405switch (message.Response.Status)
410return message.Response;
412throw _clientDiagnostics.CreateRequestFailedException(message.Response);
469switch (message.Response.Status)
473return message.Response;
475throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
507switch (message.Response.Status)
511return message.Response;
513throw _clientDiagnostics.CreateRequestFailedException(message.Response);
553switch (message.Response.Status)
558using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
560return Response.FromValue(value, message.Response);
563throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
590switch (message.Response.Status)
595using var document = JsonDocument.Parse(message.Response.ContentStream);
597return Response.FromValue(value, message.Response);
600throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\JobCredentialsRestOperations.cs (38)
91switch (message.Response.Status)
96using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
98return Response.FromValue(value, message.Response);
101throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
128switch (message.Response.Status)
133using var document = JsonDocument.Parse(message.Response.ContentStream);
135return Response.FromValue(value, message.Response);
138throw _clientDiagnostics.CreateRequestFailedException(message.Response);
193switch (message.Response.Status)
198using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
200return Response.FromValue(value, message.Response);
203throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
235switch (message.Response.Status)
240using var document = JsonDocument.Parse(message.Response.ContentStream);
242return Response.FromValue(value, message.Response);
245throw _clientDiagnostics.CreateRequestFailedException(message.Response);
309switch (message.Response.Status)
315using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
317return Response.FromValue(value, message.Response);
320throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
357switch (message.Response.Status)
363using var document = JsonDocument.Parse(message.Response.ContentStream);
365return Response.FromValue(value, message.Response);
368throw _clientDiagnostics.CreateRequestFailedException(message.Response);
422switch (message.Response.Status)
426return message.Response;
428throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
460switch (message.Response.Status)
464return message.Response;
466throw _clientDiagnostics.CreateRequestFailedException(message.Response);
511switch (message.Response.Status)
516using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
518return Response.FromValue(value, message.Response);
521throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
553switch (message.Response.Status)
558using var document = JsonDocument.Parse(message.Response.ContentStream);
560return Response.FromValue(value, message.Response);
563throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\JobExecutionsRestOperations.cs (58)
126switch (message.Response.Status)
131using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
133return Response.FromValue(value, message.Response);
136throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
170switch (message.Response.Status)
175using var document = JsonDocument.Parse(message.Response.ContentStream);
177return Response.FromValue(value, message.Response);
180throw _clientDiagnostics.CreateRequestFailedException(message.Response);
238switch (message.Response.Status)
241return message.Response;
243throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
276switch (message.Response.Status)
279return message.Response;
281throw _clientDiagnostics.CreateRequestFailedException(message.Response);
337switch (message.Response.Status)
341return message.Response;
343throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
375switch (message.Response.Status)
379return message.Response;
381throw _clientDiagnostics.CreateRequestFailedException(message.Response);
472switch (message.Response.Status)
477using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
479return Response.FromValue(value, message.Response);
482throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
521switch (message.Response.Status)
526using var document = JsonDocument.Parse(message.Response.ContentStream);
528return Response.FromValue(value, message.Response);
531throw _clientDiagnostics.CreateRequestFailedException(message.Response);
589switch (message.Response.Status)
594using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
596return Response.FromValue(value, message.Response);
599throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
632switch (message.Response.Status)
637using var document = JsonDocument.Parse(message.Response.ContentStream);
639return Response.FromValue(value, message.Response);
642throw _clientDiagnostics.CreateRequestFailedException(message.Response);
700switch (message.Response.Status)
705return message.Response;
707throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
740switch (message.Response.Status)
745return message.Response;
747throw _clientDiagnostics.CreateRequestFailedException(message.Response);
799switch (message.Response.Status)
804using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
806return Response.FromValue(value, message.Response);
809throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
848switch (message.Response.Status)
853using var document = JsonDocument.Parse(message.Response.ContentStream);
855return Response.FromValue(value, message.Response);
858throw _clientDiagnostics.CreateRequestFailedException(message.Response);
915switch (message.Response.Status)
920using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
922return Response.FromValue(value, message.Response);
925throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
969switch (message.Response.Status)
974using var document = JsonDocument.Parse(message.Response.ContentStream);
976return Response.FromValue(value, message.Response);
979throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\JobsRestOperations.cs (38)
91switch (message.Response.Status)
96using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
98return Response.FromValue(value, message.Response);
101throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
128switch (message.Response.Status)
133using var document = JsonDocument.Parse(message.Response.ContentStream);
135return Response.FromValue(value, message.Response);
138throw _clientDiagnostics.CreateRequestFailedException(message.Response);
193switch (message.Response.Status)
198using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
200return Response.FromValue(value, message.Response);
203throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
235switch (message.Response.Status)
240using var document = JsonDocument.Parse(message.Response.ContentStream);
242return Response.FromValue(value, message.Response);
245throw _clientDiagnostics.CreateRequestFailedException(message.Response);
309switch (message.Response.Status)
315using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
317return Response.FromValue(value, message.Response);
320throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
357switch (message.Response.Status)
363using var document = JsonDocument.Parse(message.Response.ContentStream);
365return Response.FromValue(value, message.Response);
368throw _clientDiagnostics.CreateRequestFailedException(message.Response);
422switch (message.Response.Status)
426return message.Response;
428throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
460switch (message.Response.Status)
464return message.Response;
466throw _clientDiagnostics.CreateRequestFailedException(message.Response);
511switch (message.Response.Status)
516using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
518return Response.FromValue(value, message.Response);
521throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
553switch (message.Response.Status)
558using var document = JsonDocument.Parse(message.Response.ContentStream);
560return Response.FromValue(value, message.Response);
563throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\JobStepExecutionsRestOperations.cs (24)
136switch (message.Response.Status)
141using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
143return Response.FromValue(value, message.Response);
146throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
186switch (message.Response.Status)
191using var document = JsonDocument.Parse(message.Response.ContentStream);
193return Response.FromValue(value, message.Response);
196throw _clientDiagnostics.CreateRequestFailedException(message.Response);
261switch (message.Response.Status)
266using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
268return Response.FromValue(value, message.Response);
271throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
309switch (message.Response.Status)
314using var document = JsonDocument.Parse(message.Response.ContentStream);
316return Response.FromValue(value, message.Response);
319throw _clientDiagnostics.CreateRequestFailedException(message.Response);
377switch (message.Response.Status)
382using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
384return Response.FromValue(value, message.Response);
387throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
432switch (message.Response.Status)
437using var document = JsonDocument.Parse(message.Response.ContentStream);
439return Response.FromValue(value, message.Response);
442throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\JobStepsRestOperations.cs (62)
101switch (message.Response.Status)
106using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
108return Response.FromValue(value, message.Response);
111throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
144switch (message.Response.Status)
149using var document = JsonDocument.Parse(message.Response.ContentStream);
151return Response.FromValue(value, message.Response);
154throw _clientDiagnostics.CreateRequestFailedException(message.Response);
219switch (message.Response.Status)
224using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
226return Response.FromValue(value, message.Response);
229throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
267switch (message.Response.Status)
272using var document = JsonDocument.Parse(message.Response.ContentStream);
274return Response.FromValue(value, message.Response);
277throw _clientDiagnostics.CreateRequestFailedException(message.Response);
333switch (message.Response.Status)
338using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
340return Response.FromValue(value, message.Response);
343throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
375switch (message.Response.Status)
380using var document = JsonDocument.Parse(message.Response.ContentStream);
382return Response.FromValue(value, message.Response);
385throw _clientDiagnostics.CreateRequestFailedException(message.Response);
447switch (message.Response.Status)
452using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
454return Response.FromValue(value, message.Response);
457throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
494switch (message.Response.Status)
499using var document = JsonDocument.Parse(message.Response.ContentStream);
501return Response.FromValue(value, message.Response);
504throw _clientDiagnostics.CreateRequestFailedException(message.Response);
575switch (message.Response.Status)
581using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
583return Response.FromValue(value, message.Response);
586throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
628switch (message.Response.Status)
634using var document = JsonDocument.Parse(message.Response.ContentStream);
636return Response.FromValue(value, message.Response);
639throw _clientDiagnostics.CreateRequestFailedException(message.Response);
700switch (message.Response.Status)
704return message.Response;
706throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
743switch (message.Response.Status)
747return message.Response;
749throw _clientDiagnostics.CreateRequestFailedException(message.Response);
800switch (message.Response.Status)
805using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
807return Response.FromValue(value, message.Response);
810throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
848switch (message.Response.Status)
853using var document = JsonDocument.Parse(message.Response.ContentStream);
855return Response.FromValue(value, message.Response);
858throw _clientDiagnostics.CreateRequestFailedException(message.Response);
908switch (message.Response.Status)
913using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
915return Response.FromValue(value, message.Response);
918throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
955switch (message.Response.Status)
960using var document = JsonDocument.Parse(message.Response.ContentStream);
962return Response.FromValue(value, message.Response);
965throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\JobTargetExecutionsRestOperations.cs (40)
136switch (message.Response.Status)
141using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
143return Response.FromValue(value, message.Response);
146throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
186switch (message.Response.Status)
191using var document = JsonDocument.Parse(message.Response.ContentStream);
193return Response.FromValue(value, message.Response);
196throw _clientDiagnostics.CreateRequestFailedException(message.Response);
297switch (message.Response.Status)
302using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
304return Response.FromValue(value, message.Response);
307throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
352switch (message.Response.Status)
357using var document = JsonDocument.Parse(message.Response.ContentStream);
359return Response.FromValue(value, message.Response);
362throw _clientDiagnostics.CreateRequestFailedException(message.Response);
430switch (message.Response.Status)
435using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
437return Response.FromValue(value, message.Response);
440throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
479switch (message.Response.Status)
484using var document = JsonDocument.Parse(message.Response.ContentStream);
486return Response.FromValue(value, message.Response);
489throw _clientDiagnostics.CreateRequestFailedException(message.Response);
547switch (message.Response.Status)
552using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
554return Response.FromValue(value, message.Response);
557throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
602switch (message.Response.Status)
607using var document = JsonDocument.Parse(message.Response.ContentStream);
609return Response.FromValue(value, message.Response);
612throw _clientDiagnostics.CreateRequestFailedException(message.Response);
675switch (message.Response.Status)
680using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
682return Response.FromValue(value, message.Response);
685throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
735switch (message.Response.Status)
740using var document = JsonDocument.Parse(message.Response.ContentStream);
742return Response.FromValue(value, message.Response);
745throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\JobTargetGroupsRestOperations.cs (38)
91switch (message.Response.Status)
96using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
98return Response.FromValue(value, message.Response);
101throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
128switch (message.Response.Status)
133using var document = JsonDocument.Parse(message.Response.ContentStream);
135return Response.FromValue(value, message.Response);
138throw _clientDiagnostics.CreateRequestFailedException(message.Response);
193switch (message.Response.Status)
198using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
200return Response.FromValue(value, message.Response);
203throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
235switch (message.Response.Status)
240using var document = JsonDocument.Parse(message.Response.ContentStream);
242return Response.FromValue(value, message.Response);
245throw _clientDiagnostics.CreateRequestFailedException(message.Response);
309switch (message.Response.Status)
315using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
317return Response.FromValue(value, message.Response);
320throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
357switch (message.Response.Status)
363using var document = JsonDocument.Parse(message.Response.ContentStream);
365return Response.FromValue(value, message.Response);
368throw _clientDiagnostics.CreateRequestFailedException(message.Response);
422switch (message.Response.Status)
426return message.Response;
428throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
460switch (message.Response.Status)
464return message.Response;
466throw _clientDiagnostics.CreateRequestFailedException(message.Response);
511switch (message.Response.Status)
516using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
518return Response.FromValue(value, message.Response);
521throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
553switch (message.Response.Status)
558using var document = JsonDocument.Parse(message.Response.ContentStream);
560return Response.FromValue(value, message.Response);
563throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\JobVersionsRestOperations.cs (24)
98switch (message.Response.Status)
103using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
105return Response.FromValue(value, message.Response);
108throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
140switch (message.Response.Status)
145using var document = JsonDocument.Parse(message.Response.ContentStream);
147return Response.FromValue(value, message.Response);
150throw _clientDiagnostics.CreateRequestFailedException(message.Response);
208switch (message.Response.Status)
213using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
215return Response.FromValue(value, message.Response);
218throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
251switch (message.Response.Status)
256using var document = JsonDocument.Parse(message.Response.ContentStream);
258return Response.FromValue(value, message.Response);
261throw _clientDiagnostics.CreateRequestFailedException(message.Response);
311switch (message.Response.Status)
316using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
318return Response.FromValue(value, message.Response);
321throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
358switch (message.Response.Status)
363using var document = JsonDocument.Parse(message.Response.ContentStream);
365return Response.FromValue(value, message.Response);
368throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\LongTermRetentionBackupsRestOperations.cs (124)
104switch (message.Response.Status)
109using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
111return Response.FromValue(value, message.Response);
114throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
151switch (message.Response.Status)
156using var document = JsonDocument.Parse(message.Response.ContentStream);
158return Response.FromValue(value, message.Response);
161throw _clientDiagnostics.CreateRequestFailedException(message.Response);
222switch (message.Response.Status)
226return message.Response;
228throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
265switch (message.Response.Status)
269return message.Response;
271throw _clientDiagnostics.CreateRequestFailedException(message.Response);
337switch (message.Response.Status)
342using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
344return Response.FromValue(value, message.Response);
347throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
381switch (message.Response.Status)
386using var document = JsonDocument.Parse(message.Response.ContentStream);
388return Response.FromValue(value, message.Response);
391throw _clientDiagnostics.CreateRequestFailedException(message.Response);
443switch (message.Response.Status)
448using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
450return Response.FromValue(value, message.Response);
453throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
477switch (message.Response.Status)
482using var document = JsonDocument.Parse(message.Response.ContentStream);
484return Response.FromValue(value, message.Response);
487throw _clientDiagnostics.CreateRequestFailedException(message.Response);
546switch (message.Response.Status)
551using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
553return Response.FromValue(value, message.Response);
556throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
585switch (message.Response.Status)
590using var document = JsonDocument.Parse(message.Response.ContentStream);
592return Response.FromValue(value, message.Response);
595throw _clientDiagnostics.CreateRequestFailedException(message.Response);
650switch (message.Response.Status)
655using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
657return Response.FromValue(value, message.Response);
660throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
692switch (message.Response.Status)
697using var document = JsonDocument.Parse(message.Response.ContentStream);
699return Response.FromValue(value, message.Response);
702throw _clientDiagnostics.CreateRequestFailedException(message.Response);
756switch (message.Response.Status)
760return message.Response;
762throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
794switch (message.Response.Status)
798return message.Response;
800throw _clientDiagnostics.CreateRequestFailedException(message.Response);
859switch (message.Response.Status)
864using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
866return Response.FromValue(value, message.Response);
869throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
898switch (message.Response.Status)
903using var document = JsonDocument.Parse(message.Response.ContentStream);
905return Response.FromValue(value, message.Response);
908throw _clientDiagnostics.CreateRequestFailedException(message.Response);
953switch (message.Response.Status)
958using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
960return Response.FromValue(value, message.Response);
963throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
982switch (message.Response.Status)
987using var document = JsonDocument.Parse(message.Response.ContentStream);
989return Response.FromValue(value, message.Response);
992throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1044switch (message.Response.Status)
1049using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1051return Response.FromValue(value, message.Response);
1054throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1078switch (message.Response.Status)
1083using var document = JsonDocument.Parse(message.Response.ContentStream);
1085return Response.FromValue(value, message.Response);
1088throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1140switch (message.Response.Status)
1145using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1147return Response.FromValue(value, message.Response);
1150throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1189switch (message.Response.Status)
1194using var document = JsonDocument.Parse(message.Response.ContentStream);
1196return Response.FromValue(value, message.Response);
1199throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1241switch (message.Response.Status)
1246using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1248return Response.FromValue(value, message.Response);
1251throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1280switch (message.Response.Status)
1285using var document = JsonDocument.Parse(message.Response.ContentStream);
1287return Response.FromValue(value, message.Response);
1290throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1337switch (message.Response.Status)
1342using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1344return Response.FromValue(value, message.Response);
1347throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1381switch (message.Response.Status)
1386using var document = JsonDocument.Parse(message.Response.ContentStream);
1388return Response.FromValue(value, message.Response);
1391throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1438switch (message.Response.Status)
1443using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1445return Response.FromValue(value, message.Response);
1448throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1482switch (message.Response.Status)
1487using var document = JsonDocument.Parse(message.Response.ContentStream);
1489return Response.FromValue(value, message.Response);
1492throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1529switch (message.Response.Status)
1534using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1536return Response.FromValue(value, message.Response);
1539throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1563switch (message.Response.Status)
1568using var document = JsonDocument.Parse(message.Response.ContentStream);
1570return Response.FromValue(value, message.Response);
1573throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1615switch (message.Response.Status)
1620using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1622return Response.FromValue(value, message.Response);
1625throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1654switch (message.Response.Status)
1659using var document = JsonDocument.Parse(message.Response.ContentStream);
1661return Response.FromValue(value, message.Response);
1664throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\LongTermRetentionManagedInstanceBackupsRestOperations.cs (124)
97switch (message.Response.Status)
102using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
104return Response.FromValue(value, message.Response);
107throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
139switch (message.Response.Status)
144using var document = JsonDocument.Parse(message.Response.ContentStream);
146return Response.FromValue(value, message.Response);
149throw _clientDiagnostics.CreateRequestFailedException(message.Response);
203switch (message.Response.Status)
207return message.Response;
209throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
241switch (message.Response.Status)
245return message.Response;
247throw _clientDiagnostics.CreateRequestFailedException(message.Response);
306switch (message.Response.Status)
311using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
313return Response.FromValue(value, message.Response);
316throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
345switch (message.Response.Status)
350using var document = JsonDocument.Parse(message.Response.ContentStream);
352return Response.FromValue(value, message.Response);
355throw _clientDiagnostics.CreateRequestFailedException(message.Response);
407switch (message.Response.Status)
412using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
414return Response.FromValue(value, message.Response);
417throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
441switch (message.Response.Status)
446using var document = JsonDocument.Parse(message.Response.ContentStream);
448return Response.FromValue(value, message.Response);
451throw _clientDiagnostics.CreateRequestFailedException(message.Response);
496switch (message.Response.Status)
501using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
503return Response.FromValue(value, message.Response);
506throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
525switch (message.Response.Status)
530using var document = JsonDocument.Parse(message.Response.ContentStream);
532return Response.FromValue(value, message.Response);
535throw _clientDiagnostics.CreateRequestFailedException(message.Response);
597switch (message.Response.Status)
602using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
604return Response.FromValue(value, message.Response);
607throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
644switch (message.Response.Status)
649using var document = JsonDocument.Parse(message.Response.ContentStream);
651return Response.FromValue(value, message.Response);
654throw _clientDiagnostics.CreateRequestFailedException(message.Response);
715switch (message.Response.Status)
719return message.Response;
721throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
758switch (message.Response.Status)
762return message.Response;
764throw _clientDiagnostics.CreateRequestFailedException(message.Response);
830switch (message.Response.Status)
835using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
837return Response.FromValue(value, message.Response);
840throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
874switch (message.Response.Status)
879using var document = JsonDocument.Parse(message.Response.ContentStream);
881return Response.FromValue(value, message.Response);
884throw _clientDiagnostics.CreateRequestFailedException(message.Response);
943switch (message.Response.Status)
948using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
950return Response.FromValue(value, message.Response);
953throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
982switch (message.Response.Status)
987using var document = JsonDocument.Parse(message.Response.ContentStream);
989return Response.FromValue(value, message.Response);
992throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1044switch (message.Response.Status)
1049using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1051return Response.FromValue(value, message.Response);
1054throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1078switch (message.Response.Status)
1083using var document = JsonDocument.Parse(message.Response.ContentStream);
1085return Response.FromValue(value, message.Response);
1088throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1135switch (message.Response.Status)
1140using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1142return Response.FromValue(value, message.Response);
1145throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1179switch (message.Response.Status)
1184using var document = JsonDocument.Parse(message.Response.ContentStream);
1186return Response.FromValue(value, message.Response);
1189throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1231switch (message.Response.Status)
1236using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1238return Response.FromValue(value, message.Response);
1241throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1270switch (message.Response.Status)
1275using var document = JsonDocument.Parse(message.Response.ContentStream);
1277return Response.FromValue(value, message.Response);
1280throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1317switch (message.Response.Status)
1322using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1324return Response.FromValue(value, message.Response);
1327throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1351switch (message.Response.Status)
1356using var document = JsonDocument.Parse(message.Response.ContentStream);
1358return Response.FromValue(value, message.Response);
1361throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1413switch (message.Response.Status)
1418using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1420return Response.FromValue(value, message.Response);
1423throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1462switch (message.Response.Status)
1467using var document = JsonDocument.Parse(message.Response.ContentStream);
1469return Response.FromValue(value, message.Response);
1472throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1519switch (message.Response.Status)
1524using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1526return Response.FromValue(value, message.Response);
1529throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1563switch (message.Response.Status)
1568using var document = JsonDocument.Parse(message.Response.ContentStream);
1570return Response.FromValue(value, message.Response);
1573throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1615switch (message.Response.Status)
1620using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1622return Response.FromValue(value, message.Response);
1625throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1654switch (message.Response.Status)
1659using var document = JsonDocument.Parse(message.Response.ContentStream);
1661return Response.FromValue(value, message.Response);
1664throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ManagedBackupShortTermRetentionPoliciesRestOperations.cs (36)
93switch (message.Response.Status)
98using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
100return Response.FromValue(value, message.Response);
103throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
131switch (message.Response.Status)
136using var document = JsonDocument.Parse(message.Response.ContentStream);
138return Response.FromValue(value, message.Response);
141throw _clientDiagnostics.CreateRequestFailedException(message.Response);
201switch (message.Response.Status)
205return message.Response;
207throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
240switch (message.Response.Status)
244return message.Response;
246throw _clientDiagnostics.CreateRequestFailedException(message.Response);
306switch (message.Response.Status)
310return message.Response;
312throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
345switch (message.Response.Status)
349return message.Response;
351throw _clientDiagnostics.CreateRequestFailedException(message.Response);
400switch (message.Response.Status)
405using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
407return Response.FromValue(value, message.Response);
410throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
437switch (message.Response.Status)
442using var document = JsonDocument.Parse(message.Response.ContentStream);
444return Response.FromValue(value, message.Response);
447throw _clientDiagnostics.CreateRequestFailedException(message.Response);
492switch (message.Response.Status)
497using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
499return Response.FromValue(value, message.Response);
502throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
534switch (message.Response.Status)
539using var document = JsonDocument.Parse(message.Response.ContentStream);
541return Response.FromValue(value, message.Response);
544throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ManagedDatabaseSecurityAlertPoliciesRestOperations.cs (32)
93switch (message.Response.Status)
98using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
100return Response.FromValue(value, message.Response);
103throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
131switch (message.Response.Status)
136using var document = JsonDocument.Parse(message.Response.ContentStream);
138return Response.FromValue(value, message.Response);
141throw _clientDiagnostics.CreateRequestFailedException(message.Response);
201switch (message.Response.Status)
207using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
209return Response.FromValue(value, message.Response);
212throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
245switch (message.Response.Status)
251using var document = JsonDocument.Parse(message.Response.ContentStream);
253return Response.FromValue(value, message.Response);
256throw _clientDiagnostics.CreateRequestFailedException(message.Response);
305switch (message.Response.Status)
310using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
312return Response.FromValue(value, message.Response);
315throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
342switch (message.Response.Status)
347using var document = JsonDocument.Parse(message.Response.ContentStream);
349return Response.FromValue(value, message.Response);
352throw _clientDiagnostics.CreateRequestFailedException(message.Response);
397switch (message.Response.Status)
402using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
404return Response.FromValue(value, message.Response);
407throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
439switch (message.Response.Status)
444using var document = JsonDocument.Parse(message.Response.ContentStream);
446return Response.FromValue(value, message.Response);
449throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ManagedDatabaseSensitivityLabelsRestOperations.cs (66)
114switch (message.Response.Status)
119using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
121return Response.FromValue(value, message.Response);
124throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
167switch (message.Response.Status)
172using var document = JsonDocument.Parse(message.Response.ContentStream);
174return Response.FromValue(value, message.Response);
177throw _clientDiagnostics.CreateRequestFailedException(message.Response);
257switch (message.Response.Status)
263using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
265return Response.FromValue(value, message.Response);
268throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
315switch (message.Response.Status)
321using var document = JsonDocument.Parse(message.Response.ContentStream);
323return Response.FromValue(value, message.Response);
326throw _clientDiagnostics.CreateRequestFailedException(message.Response);
396switch (message.Response.Status)
399return message.Response;
401throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
443switch (message.Response.Status)
446return message.Response;
448throw _clientDiagnostics.CreateRequestFailedException(message.Response);
519switch (message.Response.Status)
522return message.Response;
524throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
566switch (message.Response.Status)
569return message.Response;
571throw _clientDiagnostics.CreateRequestFailedException(message.Response);
642switch (message.Response.Status)
645return message.Response;
647throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
689switch (message.Response.Status)
692return message.Response;
694throw _clientDiagnostics.CreateRequestFailedException(message.Response);
748switch (message.Response.Status)
753using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
755return Response.FromValue(value, message.Response);
758throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
786switch (message.Response.Status)
791using var document = JsonDocument.Parse(message.Response.ContentStream);
793return Response.FromValue(value, message.Response);
796throw _clientDiagnostics.CreateRequestFailedException(message.Response);
860switch (message.Response.Status)
865using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
867return Response.FromValue(value, message.Response);
870throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
900switch (message.Response.Status)
905using var document = JsonDocument.Parse(message.Response.ContentStream);
907return Response.FromValue(value, message.Response);
910throw _clientDiagnostics.CreateRequestFailedException(message.Response);
956switch (message.Response.Status)
961using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
963return Response.FromValue(value, message.Response);
966throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
999switch (message.Response.Status)
1004using var document = JsonDocument.Parse(message.Response.ContentStream);
1006return Response.FromValue(value, message.Response);
1009throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1057switch (message.Response.Status)
1062using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1064return Response.FromValue(value, message.Response);
1067throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1102switch (message.Response.Status)
1107using var document = JsonDocument.Parse(message.Response.ContentStream);
1109return Response.FromValue(value, message.Response);
1112throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ManagedDatabasesRestOperations.cs (64)
84switch (message.Response.Status)
89using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
91return Response.FromValue(value, message.Response);
94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
116switch (message.Response.Status)
121using var document = JsonDocument.Parse(message.Response.ContentStream);
123return Response.FromValue(value, message.Response);
126throw _clientDiagnostics.CreateRequestFailedException(message.Response);
174switch (message.Response.Status)
179using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
181return Response.FromValue(value, message.Response);
184throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
211switch (message.Response.Status)
216using var document = JsonDocument.Parse(message.Response.ContentStream);
218return Response.FromValue(value, message.Response);
221throw _clientDiagnostics.CreateRequestFailedException(message.Response);
278switch (message.Response.Status)
283return message.Response;
285throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
317switch (message.Response.Status)
322return message.Response;
324throw _clientDiagnostics.CreateRequestFailedException(message.Response);
371switch (message.Response.Status)
376return message.Response;
378throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
405switch (message.Response.Status)
410return message.Response;
412throw _clientDiagnostics.CreateRequestFailedException(message.Response);
469switch (message.Response.Status)
473return message.Response;
475throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
507switch (message.Response.Status)
511return message.Response;
513throw _clientDiagnostics.CreateRequestFailedException(message.Response);
555switch (message.Response.Status)
560using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
562return Response.FromValue(value, message.Response);
565throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
587switch (message.Response.Status)
592using var document = JsonDocument.Parse(message.Response.ContentStream);
594return Response.FromValue(value, message.Response);
597throw _clientDiagnostics.CreateRequestFailedException(message.Response);
654switch (message.Response.Status)
658return message.Response;
660throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
692switch (message.Response.Status)
696return message.Response;
698throw _clientDiagnostics.CreateRequestFailedException(message.Response);
738switch (message.Response.Status)
743using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
745return Response.FromValue(value, message.Response);
748throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
775switch (message.Response.Status)
780using var document = JsonDocument.Parse(message.Response.ContentStream);
782return Response.FromValue(value, message.Response);
785throw _clientDiagnostics.CreateRequestFailedException(message.Response);
825switch (message.Response.Status)
830using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
832return Response.FromValue(value, message.Response);
835throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
862switch (message.Response.Status)
867using var document = JsonDocument.Parse(message.Response.ContentStream);
869return Response.FromValue(value, message.Response);
872throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ManagedDatabaseVulnerabilityAssessmentScansRestOperations.cs (38)
94switch (message.Response.Status)
99using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
101return Response.FromValue(value, message.Response);
104throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
132switch (message.Response.Status)
137using var document = JsonDocument.Parse(message.Response.ContentStream);
139return Response.FromValue(value, message.Response);
142throw _clientDiagnostics.CreateRequestFailedException(message.Response);
200switch (message.Response.Status)
205using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
207return Response.FromValue(value, message.Response);
210throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
243switch (message.Response.Status)
248using var document = JsonDocument.Parse(message.Response.ContentStream);
250return Response.FromValue(value, message.Response);
253throw _clientDiagnostics.CreateRequestFailedException(message.Response);
311switch (message.Response.Status)
315return message.Response;
317throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
350switch (message.Response.Status)
354return message.Response;
356throw _clientDiagnostics.CreateRequestFailedException(message.Response);
415switch (message.Response.Status)
421using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
423return Response.FromValue(value, message.Response);
426throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
459switch (message.Response.Status)
465using var document = JsonDocument.Parse(message.Response.ContentStream);
467return Response.FromValue(value, message.Response);
470throw _clientDiagnostics.CreateRequestFailedException(message.Response);
516switch (message.Response.Status)
521using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
523return Response.FromValue(value, message.Response);
526throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
559switch (message.Response.Status)
564using var document = JsonDocument.Parse(message.Response.ContentStream);
566return Response.FromValue(value, message.Response);
569throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ManagedDatabaseVulnerabilityAssessmentsRestOperations.cs (38)
93switch (message.Response.Status)
98using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
100return Response.FromValue(value, message.Response);
103throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
131switch (message.Response.Status)
136using var document = JsonDocument.Parse(message.Response.ContentStream);
138return Response.FromValue(value, message.Response);
141throw _clientDiagnostics.CreateRequestFailedException(message.Response);
201switch (message.Response.Status)
207using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
209return Response.FromValue(value, message.Response);
212throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
245switch (message.Response.Status)
251using var document = JsonDocument.Parse(message.Response.ContentStream);
253return Response.FromValue(value, message.Response);
256throw _clientDiagnostics.CreateRequestFailedException(message.Response);
306switch (message.Response.Status)
309return message.Response;
311throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
339switch (message.Response.Status)
342return message.Response;
344throw _clientDiagnostics.CreateRequestFailedException(message.Response);
393switch (message.Response.Status)
398using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
400return Response.FromValue(value, message.Response);
403throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
430switch (message.Response.Status)
435using var document = JsonDocument.Parse(message.Response.ContentStream);
437return Response.FromValue(value, message.Response);
440throw _clientDiagnostics.CreateRequestFailedException(message.Response);
485switch (message.Response.Status)
490using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
492return Response.FromValue(value, message.Response);
495throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
527switch (message.Response.Status)
532using var document = JsonDocument.Parse(message.Response.ContentStream);
534return Response.FromValue(value, message.Response);
537throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ManagedInstanceAdministratorsRestOperations.cs (36)
84switch (message.Response.Status)
89using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
91return Response.FromValue(value, message.Response);
94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
116switch (message.Response.Status)
121using var document = JsonDocument.Parse(message.Response.ContentStream);
123return Response.FromValue(value, message.Response);
126throw _clientDiagnostics.CreateRequestFailedException(message.Response);
169switch (message.Response.Status)
174using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
176return Response.FromValue(value, message.Response);
179throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
201switch (message.Response.Status)
206using var document = JsonDocument.Parse(message.Response.ContentStream);
208return Response.FromValue(value, message.Response);
211throw _clientDiagnostics.CreateRequestFailedException(message.Response);
263switch (message.Response.Status)
268return message.Response;
270throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
297switch (message.Response.Status)
302return message.Response;
304throw _clientDiagnostics.CreateRequestFailedException(message.Response);
346switch (message.Response.Status)
350return message.Response;
352throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
374switch (message.Response.Status)
378return message.Response;
380throw _clientDiagnostics.CreateRequestFailedException(message.Response);
420switch (message.Response.Status)
425using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
427return Response.FromValue(value, message.Response);
430throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
457switch (message.Response.Status)
462using var document = JsonDocument.Parse(message.Response.ContentStream);
464return Response.FromValue(value, message.Response);
467throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ManagedInstanceEncryptionProtectorsRestOperations.cs (36)
86switch (message.Response.Status)
90return message.Response;
92throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
115switch (message.Response.Status)
119return message.Response;
121throw _clientDiagnostics.CreateRequestFailedException(message.Response);
163switch (message.Response.Status)
168using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
170return Response.FromValue(value, message.Response);
173throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
195switch (message.Response.Status)
200using var document = JsonDocument.Parse(message.Response.ContentStream);
202return Response.FromValue(value, message.Response);
205throw _clientDiagnostics.CreateRequestFailedException(message.Response);
249switch (message.Response.Status)
254using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
256return Response.FromValue(value, message.Response);
259throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
282switch (message.Response.Status)
287using var document = JsonDocument.Parse(message.Response.ContentStream);
289return Response.FromValue(value, message.Response);
292throw _clientDiagnostics.CreateRequestFailedException(message.Response);
345switch (message.Response.Status)
349return message.Response;
351throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
379switch (message.Response.Status)
383return message.Response;
385throw _clientDiagnostics.CreateRequestFailedException(message.Response);
425switch (message.Response.Status)
430using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
432return Response.FromValue(value, message.Response);
435throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
462switch (message.Response.Status)
467using var document = JsonDocument.Parse(message.Response.ContentStream);
469return Response.FromValue(value, message.Response);
472throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ManagedInstanceKeysRestOperations.cs (36)
89switch (message.Response.Status)
94using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
96return Response.FromValue(value, message.Response);
99throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
122switch (message.Response.Status)
127using var document = JsonDocument.Parse(message.Response.ContentStream);
129return Response.FromValue(value, message.Response);
132throw _clientDiagnostics.CreateRequestFailedException(message.Response);
180switch (message.Response.Status)
185using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
187return Response.FromValue(value, message.Response);
190throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
217switch (message.Response.Status)
222using var document = JsonDocument.Parse(message.Response.ContentStream);
224return Response.FromValue(value, message.Response);
227throw _clientDiagnostics.CreateRequestFailedException(message.Response);
284switch (message.Response.Status)
289return message.Response;
291throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
323switch (message.Response.Status)
328return message.Response;
330throw _clientDiagnostics.CreateRequestFailedException(message.Response);
377switch (message.Response.Status)
382return message.Response;
384throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
411switch (message.Response.Status)
416return message.Response;
418throw _clientDiagnostics.CreateRequestFailedException(message.Response);
459switch (message.Response.Status)
464using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
466return Response.FromValue(value, message.Response);
469throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
497switch (message.Response.Status)
502using var document = JsonDocument.Parse(message.Response.ContentStream);
504return Response.FromValue(value, message.Response);
507throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ManagedInstanceLongTermRetentionPoliciesRestOperations.cs (30)
93switch (message.Response.Status)
98using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
100return Response.FromValue(value, message.Response);
103throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
131switch (message.Response.Status)
136using var document = JsonDocument.Parse(message.Response.ContentStream);
138return Response.FromValue(value, message.Response);
141throw _clientDiagnostics.CreateRequestFailedException(message.Response);
201switch (message.Response.Status)
205return message.Response;
207throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
240switch (message.Response.Status)
244return message.Response;
246throw _clientDiagnostics.CreateRequestFailedException(message.Response);
295switch (message.Response.Status)
300using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
302return Response.FromValue(value, message.Response);
305throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
332switch (message.Response.Status)
337using var document = JsonDocument.Parse(message.Response.ContentStream);
339return Response.FromValue(value, message.Response);
342throw _clientDiagnostics.CreateRequestFailedException(message.Response);
387switch (message.Response.Status)
392using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
394return Response.FromValue(value, message.Response);
397throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
429switch (message.Response.Status)
434using var document = JsonDocument.Parse(message.Response.ContentStream);
436return Response.FromValue(value, message.Response);
439throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ManagedInstanceRestOperations.cs (30)
86switch (message.Response.Status)
89return message.Response;
91throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
114switch (message.Response.Status)
117return message.Response;
119throw _clientDiagnostics.CreateRequestFailedException(message.Response);
161switch (message.Response.Status)
166using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
168return Response.FromValue(value, message.Response);
171throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
193switch (message.Response.Status)
198using var document = JsonDocument.Parse(message.Response.ContentStream);
200return Response.FromValue(value, message.Response);
203throw _clientDiagnostics.CreateRequestFailedException(message.Response);
247switch (message.Response.Status)
252using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
254return Response.FromValue(value, message.Response);
257throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
280switch (message.Response.Status)
285using var document = JsonDocument.Parse(message.Response.ContentStream);
287return Response.FromValue(value, message.Response);
290throw _clientDiagnostics.CreateRequestFailedException(message.Response);
330switch (message.Response.Status)
335using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
337return Response.FromValue(value, message.Response);
340throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
367switch (message.Response.Status)
372using var document = JsonDocument.Parse(message.Response.ContentStream);
374return Response.FromValue(value, message.Response);
377throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ManagedInstancesRestOperations.cs (80)
88switch (message.Response.Status)
92return message.Response;
94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
117switch (message.Response.Status)
121return message.Response;
123throw _clientDiagnostics.CreateRequestFailedException(message.Response);
158switch (message.Response.Status)
163using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
165return Response.FromValue(value, message.Response);
168throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
185switch (message.Response.Status)
190using var document = JsonDocument.Parse(message.Response.ContentStream);
192return Response.FromValue(value, message.Response);
195throw _clientDiagnostics.CreateRequestFailedException(message.Response);
236switch (message.Response.Status)
241using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
243return Response.FromValue(value, message.Response);
246throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
268switch (message.Response.Status)
273using var document = JsonDocument.Parse(message.Response.ContentStream);
275return Response.FromValue(value, message.Response);
278throw _clientDiagnostics.CreateRequestFailedException(message.Response);
328switch (message.Response.Status)
333return message.Response;
335throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
362switch (message.Response.Status)
367return message.Response;
369throw _clientDiagnostics.CreateRequestFailedException(message.Response);
409switch (message.Response.Status)
414return message.Response;
416throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
438switch (message.Response.Status)
443return message.Response;
445throw _clientDiagnostics.CreateRequestFailedException(message.Response);
495switch (message.Response.Status)
499return message.Response;
501throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
528switch (message.Response.Status)
532return message.Response;
534throw _clientDiagnostics.CreateRequestFailedException(message.Response);
576switch (message.Response.Status)
581using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
583return Response.FromValue(value, message.Response);
586throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
608switch (message.Response.Status)
613using var document = JsonDocument.Parse(message.Response.ContentStream);
615return Response.FromValue(value, message.Response);
618throw _clientDiagnostics.CreateRequestFailedException(message.Response);
644switch (message.Response.Status)
649using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
651return Response.FromValue(value, message.Response);
654throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
664switch (message.Response.Status)
669using var document = JsonDocument.Parse(message.Response.ContentStream);
671return Response.FromValue(value, message.Response);
674throw _clientDiagnostics.CreateRequestFailedException(message.Response);
709switch (message.Response.Status)
714using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
716return Response.FromValue(value, message.Response);
719throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
741switch (message.Response.Status)
746using var document = JsonDocument.Parse(message.Response.ContentStream);
748return Response.FromValue(value, message.Response);
751throw _clientDiagnostics.CreateRequestFailedException(message.Response);
791switch (message.Response.Status)
796using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
798return Response.FromValue(value, message.Response);
801throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
828switch (message.Response.Status)
833using var document = JsonDocument.Parse(message.Response.ContentStream);
835return Response.FromValue(value, message.Response);
838throw _clientDiagnostics.CreateRequestFailedException(message.Response);
868switch (message.Response.Status)
873using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
875return Response.FromValue(value, message.Response);
878throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
895switch (message.Response.Status)
900using var document = JsonDocument.Parse(message.Response.ContentStream);
902return Response.FromValue(value, message.Response);
905throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ManagedInstanceVulnerabilityAssessmentsRestOperations.cs (38)
86switch (message.Response.Status)
91using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
93return Response.FromValue(value, message.Response);
96throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
119switch (message.Response.Status)
124using var document = JsonDocument.Parse(message.Response.ContentStream);
126return Response.FromValue(value, message.Response);
129throw _clientDiagnostics.CreateRequestFailedException(message.Response);
182switch (message.Response.Status)
188using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
190return Response.FromValue(value, message.Response);
193throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
221switch (message.Response.Status)
227using var document = JsonDocument.Parse(message.Response.ContentStream);
229return Response.FromValue(value, message.Response);
232throw _clientDiagnostics.CreateRequestFailedException(message.Response);
275switch (message.Response.Status)
278return message.Response;
280throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
303switch (message.Response.Status)
306return message.Response;
308throw _clientDiagnostics.CreateRequestFailedException(message.Response);
350switch (message.Response.Status)
355using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
357return Response.FromValue(value, message.Response);
360throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
382switch (message.Response.Status)
387using var document = JsonDocument.Parse(message.Response.ContentStream);
389return Response.FromValue(value, message.Response);
392throw _clientDiagnostics.CreateRequestFailedException(message.Response);
432switch (message.Response.Status)
437using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
439return Response.FromValue(value, message.Response);
442throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
469switch (message.Response.Status)
474using var document = JsonDocument.Parse(message.Response.ContentStream);
476return Response.FromValue(value, message.Response);
479throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesRestOperations.cs (36)
93switch (message.Response.Status)
98using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
100return Response.FromValue(value, message.Response);
103throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
131switch (message.Response.Status)
136using var document = JsonDocument.Parse(message.Response.ContentStream);
138return Response.FromValue(value, message.Response);
141throw _clientDiagnostics.CreateRequestFailedException(message.Response);
201switch (message.Response.Status)
205return message.Response;
207throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
240switch (message.Response.Status)
244return message.Response;
246throw _clientDiagnostics.CreateRequestFailedException(message.Response);
306switch (message.Response.Status)
310return message.Response;
312throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
345switch (message.Response.Status)
349return message.Response;
351throw _clientDiagnostics.CreateRequestFailedException(message.Response);
400switch (message.Response.Status)
405using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
407return Response.FromValue(value, message.Response);
410throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
437switch (message.Response.Status)
442using var document = JsonDocument.Parse(message.Response.ContentStream);
444return Response.FromValue(value, message.Response);
447throw _clientDiagnostics.CreateRequestFailedException(message.Response);
492switch (message.Response.Status)
497using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
499return Response.FromValue(value, message.Response);
502throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
534switch (message.Response.Status)
539using var document = JsonDocument.Parse(message.Response.ContentStream);
541return Response.FromValue(value, message.Response);
544throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ManagedServerSecurityAlertPoliciesRestOperations.cs (30)
86switch (message.Response.Status)
91using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
93return Response.FromValue(value, message.Response);
96throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
119switch (message.Response.Status)
124using var document = JsonDocument.Parse(message.Response.ContentStream);
126return Response.FromValue(value, message.Response);
129throw _clientDiagnostics.CreateRequestFailedException(message.Response);
182switch (message.Response.Status)
186return message.Response;
188throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
216switch (message.Response.Status)
220return message.Response;
222throw _clientDiagnostics.CreateRequestFailedException(message.Response);
264switch (message.Response.Status)
269using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
271return Response.FromValue(value, message.Response);
274throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
296switch (message.Response.Status)
301using var document = JsonDocument.Parse(message.Response.ContentStream);
303return Response.FromValue(value, message.Response);
306throw _clientDiagnostics.CreateRequestFailedException(message.Response);
346switch (message.Response.Status)
351using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
353return Response.FromValue(value, message.Response);
356throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
383switch (message.Response.Status)
388using var document = JsonDocument.Parse(message.Response.ContentStream);
390return Response.FromValue(value, message.Response);
393throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\PrivateEndpointConnectionsRestOperations.cs (36)
90switch (message.Response.Status)
95using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
97return Response.FromValue(value, message.Response);
100throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
127switch (message.Response.Status)
132using var document = JsonDocument.Parse(message.Response.ContentStream);
134return Response.FromValue(value, message.Response);
137throw _clientDiagnostics.CreateRequestFailedException(message.Response);
194switch (message.Response.Status)
198return message.Response;
200throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
232switch (message.Response.Status)
236return message.Response;
238throw _clientDiagnostics.CreateRequestFailedException(message.Response);
285switch (message.Response.Status)
290return message.Response;
292throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
319switch (message.Response.Status)
324return message.Response;
326throw _clientDiagnostics.CreateRequestFailedException(message.Response);
368switch (message.Response.Status)
373using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
375return Response.FromValue(value, message.Response);
378throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
400switch (message.Response.Status)
405using var document = JsonDocument.Parse(message.Response.ContentStream);
407return Response.FromValue(value, message.Response);
410throw _clientDiagnostics.CreateRequestFailedException(message.Response);
450switch (message.Response.Status)
455using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
457return Response.FromValue(value, message.Response);
460throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
487switch (message.Response.Status)
492using var document = JsonDocument.Parse(message.Response.ContentStream);
494return Response.FromValue(value, message.Response);
497throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\PrivateLinkResourcesRestOperations.cs (24)
84switch (message.Response.Status)
89using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
91return Response.FromValue(value, message.Response);
94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
116switch (message.Response.Status)
121using var document = JsonDocument.Parse(message.Response.ContentStream);
123return Response.FromValue(value, message.Response);
126throw _clientDiagnostics.CreateRequestFailedException(message.Response);
174switch (message.Response.Status)
179using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
181return Response.FromValue(value, message.Response);
184throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
211switch (message.Response.Status)
216using var document = JsonDocument.Parse(message.Response.ContentStream);
218return Response.FromValue(value, message.Response);
221throw _clientDiagnostics.CreateRequestFailedException(message.Response);
261switch (message.Response.Status)
266using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
268return Response.FromValue(value, message.Response);
271throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
298switch (message.Response.Status)
303using var document = JsonDocument.Parse(message.Response.ContentStream);
305return Response.FromValue(value, message.Response);
308throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RecommendedElasticPoolsRestOperations.cs (24)
90switch (message.Response.Status)
95using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
97return Response.FromValue(value, message.Response);
100throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
127switch (message.Response.Status)
132using var document = JsonDocument.Parse(message.Response.ContentStream);
134return Response.FromValue(value, message.Response);
137throw _clientDiagnostics.CreateRequestFailedException(message.Response);
179switch (message.Response.Status)
184using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
186return Response.FromValue(value, message.Response);
189throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
211switch (message.Response.Status)
216using var document = JsonDocument.Parse(message.Response.ContentStream);
218return Response.FromValue(value, message.Response);
221throw _clientDiagnostics.CreateRequestFailedException(message.Response);
270switch (message.Response.Status)
275using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
277return Response.FromValue(value, message.Response);
280throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
307switch (message.Response.Status)
312using var document = JsonDocument.Parse(message.Response.ContentStream);
314return Response.FromValue(value, message.Response);
317throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RecoverableManagedDatabasesRestOperations.cs (24)
84switch (message.Response.Status)
89using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
91return Response.FromValue(value, message.Response);
94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
116switch (message.Response.Status)
121using var document = JsonDocument.Parse(message.Response.ContentStream);
123return Response.FromValue(value, message.Response);
126throw _clientDiagnostics.CreateRequestFailedException(message.Response);
174switch (message.Response.Status)
179using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
181return Response.FromValue(value, message.Response);
184throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
211switch (message.Response.Status)
216using var document = JsonDocument.Parse(message.Response.ContentStream);
218return Response.FromValue(value, message.Response);
221throw _clientDiagnostics.CreateRequestFailedException(message.Response);
261switch (message.Response.Status)
266using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
268return Response.FromValue(value, message.Response);
271throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
298switch (message.Response.Status)
303using var document = JsonDocument.Parse(message.Response.ContentStream);
305return Response.FromValue(value, message.Response);
308throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestorableDroppedManagedDatabasesRestOperations.cs (24)
84switch (message.Response.Status)
89using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
91return Response.FromValue(value, message.Response);
94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
116switch (message.Response.Status)
121using var document = JsonDocument.Parse(message.Response.ContentStream);
123return Response.FromValue(value, message.Response);
126throw _clientDiagnostics.CreateRequestFailedException(message.Response);
174switch (message.Response.Status)
179using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
181return Response.FromValue(value, message.Response);
184throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
211switch (message.Response.Status)
216using var document = JsonDocument.Parse(message.Response.ContentStream);
218return Response.FromValue(value, message.Response);
221throw _clientDiagnostics.CreateRequestFailedException(message.Response);
261switch (message.Response.Status)
266using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
268return Response.FromValue(value, message.Response);
271throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
298switch (message.Response.Status)
303using var document = JsonDocument.Parse(message.Response.ContentStream);
305return Response.FromValue(value, message.Response);
308throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\SensitivityLabelsRestOperations.cs (66)
96switch (message.Response.Status)
101using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
103return Response.FromValue(value, message.Response);
106throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
134switch (message.Response.Status)
139using var document = JsonDocument.Parse(message.Response.ContentStream);
141return Response.FromValue(value, message.Response);
144throw _clientDiagnostics.CreateRequestFailedException(message.Response);
208switch (message.Response.Status)
213using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
215return Response.FromValue(value, message.Response);
218throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
248switch (message.Response.Status)
253using var document = JsonDocument.Parse(message.Response.ContentStream);
255return Response.FromValue(value, message.Response);
258throw _clientDiagnostics.CreateRequestFailedException(message.Response);
329switch (message.Response.Status)
332return message.Response;
334throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
376switch (message.Response.Status)
379return message.Response;
381throw _clientDiagnostics.CreateRequestFailedException(message.Response);
452switch (message.Response.Status)
455return message.Response;
457throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
499switch (message.Response.Status)
502return message.Response;
504throw _clientDiagnostics.CreateRequestFailedException(message.Response);
576switch (message.Response.Status)
581using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
583return Response.FromValue(value, message.Response);
586throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
629switch (message.Response.Status)
634using var document = JsonDocument.Parse(message.Response.ContentStream);
636return Response.FromValue(value, message.Response);
639throw _clientDiagnostics.CreateRequestFailedException(message.Response);
719switch (message.Response.Status)
725using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
727return Response.FromValue(value, message.Response);
730throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
777switch (message.Response.Status)
783using var document = JsonDocument.Parse(message.Response.ContentStream);
785return Response.FromValue(value, message.Response);
788throw _clientDiagnostics.CreateRequestFailedException(message.Response);
858switch (message.Response.Status)
861return message.Response;
863throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
905switch (message.Response.Status)
908return message.Response;
910throw _clientDiagnostics.CreateRequestFailedException(message.Response);
956switch (message.Response.Status)
961using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
963return Response.FromValue(value, message.Response);
966throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
999switch (message.Response.Status)
1004using var document = JsonDocument.Parse(message.Response.ContentStream);
1006return Response.FromValue(value, message.Response);
1009throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1057switch (message.Response.Status)
1062using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1064return Response.FromValue(value, message.Response);
1067throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1102switch (message.Response.Status)
1107using var document = JsonDocument.Parse(message.Response.ContentStream);
1109return Response.FromValue(value, message.Response);
1112throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ServerAzureADAdministratorsRestOperations.cs (36)
86switch (message.Response.Status)
91using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
93return Response.FromValue(value, message.Response);
96throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
119switch (message.Response.Status)
124using var document = JsonDocument.Parse(message.Response.ContentStream);
126return Response.FromValue(value, message.Response);
129throw _clientDiagnostics.CreateRequestFailedException(message.Response);
182switch (message.Response.Status)
187return message.Response;
189throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
217switch (message.Response.Status)
222return message.Response;
224throw _clientDiagnostics.CreateRequestFailedException(message.Response);
267switch (message.Response.Status)
272return message.Response;
274throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
297switch (message.Response.Status)
302return message.Response;
304throw _clientDiagnostics.CreateRequestFailedException(message.Response);
346switch (message.Response.Status)
351using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
353return Response.FromValue(value, message.Response);
356throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
378switch (message.Response.Status)
383using var document = JsonDocument.Parse(message.Response.ContentStream);
385return Response.FromValue(value, message.Response);
388throw _clientDiagnostics.CreateRequestFailedException(message.Response);
428switch (message.Response.Status)
433using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
435return Response.FromValue(value, message.Response);
438throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
465switch (message.Response.Status)
470using var document = JsonDocument.Parse(message.Response.ContentStream);
472return Response.FromValue(value, message.Response);
475throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ServerAzureADOnlyAuthenticationsRestOperations.cs (36)
86switch (message.Response.Status)
91using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
93return Response.FromValue(value, message.Response);
96throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
119switch (message.Response.Status)
124using var document = JsonDocument.Parse(message.Response.ContentStream);
126return Response.FromValue(value, message.Response);
129throw _clientDiagnostics.CreateRequestFailedException(message.Response);
182switch (message.Response.Status)
187return message.Response;
189throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
217switch (message.Response.Status)
222return message.Response;
224throw _clientDiagnostics.CreateRequestFailedException(message.Response);
267switch (message.Response.Status)
272return message.Response;
274throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
297switch (message.Response.Status)
302return message.Response;
304throw _clientDiagnostics.CreateRequestFailedException(message.Response);
346switch (message.Response.Status)
351using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
353return Response.FromValue(value, message.Response);
356throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
378switch (message.Response.Status)
383using var document = JsonDocument.Parse(message.Response.ContentStream);
385return Response.FromValue(value, message.Response);
388throw _clientDiagnostics.CreateRequestFailedException(message.Response);
428switch (message.Response.Status)
433using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
435return Response.FromValue(value, message.Response);
438throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
465switch (message.Response.Status)
470using var document = JsonDocument.Parse(message.Response.ContentStream);
472return Response.FromValue(value, message.Response);
475throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ServerBlobAuditingPoliciesRestOperations.cs (30)
85switch (message.Response.Status)
90using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
92return Response.FromValue(value, message.Response);
95throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
117switch (message.Response.Status)
122using var document = JsonDocument.Parse(message.Response.ContentStream);
124return Response.FromValue(value, message.Response);
127throw _clientDiagnostics.CreateRequestFailedException(message.Response);
179switch (message.Response.Status)
183return message.Response;
185throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
212switch (message.Response.Status)
216return message.Response;
218throw _clientDiagnostics.CreateRequestFailedException(message.Response);
260switch (message.Response.Status)
265using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
267return Response.FromValue(value, message.Response);
270throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
292switch (message.Response.Status)
297using var document = JsonDocument.Parse(message.Response.ContentStream);
299return Response.FromValue(value, message.Response);
302throw _clientDiagnostics.CreateRequestFailedException(message.Response);
342switch (message.Response.Status)
347using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
349return Response.FromValue(value, message.Response);
352throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
379switch (message.Response.Status)
384using var document = JsonDocument.Parse(message.Response.ContentStream);
386return Response.FromValue(value, message.Response);
389throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ServerDnsAliasesRestOperations.cs (42)
90switch (message.Response.Status)
95using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
97return Response.FromValue(value, message.Response);
100throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
127switch (message.Response.Status)
132using var document = JsonDocument.Parse(message.Response.ContentStream);
134return Response.FromValue(value, message.Response);
137throw _clientDiagnostics.CreateRequestFailedException(message.Response);
185switch (message.Response.Status)
190return message.Response;
192throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
219switch (message.Response.Status)
224return message.Response;
226throw _clientDiagnostics.CreateRequestFailedException(message.Response);
273switch (message.Response.Status)
278return message.Response;
280throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
307switch (message.Response.Status)
312return message.Response;
314throw _clientDiagnostics.CreateRequestFailedException(message.Response);
356switch (message.Response.Status)
361using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
363return Response.FromValue(value, message.Response);
366throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
388switch (message.Response.Status)
393using var document = JsonDocument.Parse(message.Response.ContentStream);
395return Response.FromValue(value, message.Response);
398throw _clientDiagnostics.CreateRequestFailedException(message.Response);
455switch (message.Response.Status)
459return message.Response;
461throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
493switch (message.Response.Status)
497return message.Response;
499throw _clientDiagnostics.CreateRequestFailedException(message.Response);
539switch (message.Response.Status)
544using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
546return Response.FromValue(value, message.Response);
549throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
576switch (message.Response.Status)
581using var document = JsonDocument.Parse(message.Response.ContentStream);
583return Response.FromValue(value, message.Response);
586throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ServerKeysRestOperations.cs (36)
84switch (message.Response.Status)
89using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
91return Response.FromValue(value, message.Response);
94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
116switch (message.Response.Status)
121using var document = JsonDocument.Parse(message.Response.ContentStream);
123return Response.FromValue(value, message.Response);
126throw _clientDiagnostics.CreateRequestFailedException(message.Response);
174switch (message.Response.Status)
179using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
181return Response.FromValue(value, message.Response);
184throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
211switch (message.Response.Status)
216using var document = JsonDocument.Parse(message.Response.ContentStream);
218return Response.FromValue(value, message.Response);
221throw _clientDiagnostics.CreateRequestFailedException(message.Response);
278switch (message.Response.Status)
283return message.Response;
285throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
317switch (message.Response.Status)
322return message.Response;
324throw _clientDiagnostics.CreateRequestFailedException(message.Response);
371switch (message.Response.Status)
376return message.Response;
378throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
405switch (message.Response.Status)
410return message.Response;
412throw _clientDiagnostics.CreateRequestFailedException(message.Response);
452switch (message.Response.Status)
457using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
459return Response.FromValue(value, message.Response);
462throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
489switch (message.Response.Status)
494using var document = JsonDocument.Parse(message.Response.ContentStream);
496return Response.FromValue(value, message.Response);
499throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ServerSecurityAlertPoliciesRestOperations.cs (30)
86switch (message.Response.Status)
91using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
93return Response.FromValue(value, message.Response);
96throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
119switch (message.Response.Status)
124using var document = JsonDocument.Parse(message.Response.ContentStream);
126return Response.FromValue(value, message.Response);
129throw _clientDiagnostics.CreateRequestFailedException(message.Response);
182switch (message.Response.Status)
186return message.Response;
188throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
216switch (message.Response.Status)
220return message.Response;
222throw _clientDiagnostics.CreateRequestFailedException(message.Response);
264switch (message.Response.Status)
269using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
271return Response.FromValue(value, message.Response);
274throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
296switch (message.Response.Status)
301using var document = JsonDocument.Parse(message.Response.ContentStream);
303return Response.FromValue(value, message.Response);
306throw _clientDiagnostics.CreateRequestFailedException(message.Response);
346switch (message.Response.Status)
351using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
353return Response.FromValue(value, message.Response);
356throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
383switch (message.Response.Status)
388using var document = JsonDocument.Parse(message.Response.ContentStream);
390return Response.FromValue(value, message.Response);
393throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ServersRestOperations.cs (66)
77switch (message.Response.Status)
82using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
84return Response.FromValue(value, message.Response);
87throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
104switch (message.Response.Status)
109using var document = JsonDocument.Parse(message.Response.ContentStream);
111return Response.FromValue(value, message.Response);
114throw _clientDiagnostics.CreateRequestFailedException(message.Response);
155switch (message.Response.Status)
160using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
162return Response.FromValue(value, message.Response);
165throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
187switch (message.Response.Status)
192using var document = JsonDocument.Parse(message.Response.ContentStream);
194return Response.FromValue(value, message.Response);
197throw _clientDiagnostics.CreateRequestFailedException(message.Response);
247switch (message.Response.Status)
252return message.Response;
254throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
281switch (message.Response.Status)
286return message.Response;
288throw _clientDiagnostics.CreateRequestFailedException(message.Response);
328switch (message.Response.Status)
333return message.Response;
335throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
357switch (message.Response.Status)
362return message.Response;
364throw _clientDiagnostics.CreateRequestFailedException(message.Response);
414switch (message.Response.Status)
418return message.Response;
420throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
447switch (message.Response.Status)
451return message.Response;
453throw _clientDiagnostics.CreateRequestFailedException(message.Response);
479switch (message.Response.Status)
484using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
486return Response.FromValue(value, message.Response);
489throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
499switch (message.Response.Status)
504using var document = JsonDocument.Parse(message.Response.ContentStream);
506return Response.FromValue(value, message.Response);
509throw _clientDiagnostics.CreateRequestFailedException(message.Response);
546switch (message.Response.Status)
551using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
553return Response.FromValue(value, message.Response);
556throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
573switch (message.Response.Status)
578using var document = JsonDocument.Parse(message.Response.ContentStream);
580return Response.FromValue(value, message.Response);
583throw _clientDiagnostics.CreateRequestFailedException(message.Response);
618switch (message.Response.Status)
623using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
625return Response.FromValue(value, message.Response);
628throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
650switch (message.Response.Status)
655using var document = JsonDocument.Parse(message.Response.ContentStream);
657return Response.FromValue(value, message.Response);
660throw _clientDiagnostics.CreateRequestFailedException(message.Response);
690switch (message.Response.Status)
695using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
697return Response.FromValue(value, message.Response);
700throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
717switch (message.Response.Status)
722using var document = JsonDocument.Parse(message.Response.ContentStream);
724return Response.FromValue(value, message.Response);
727throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ServerVulnerabilityAssessmentsRestOperations.cs (38)
86switch (message.Response.Status)
91using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
93return Response.FromValue(value, message.Response);
96throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
119switch (message.Response.Status)
124using var document = JsonDocument.Parse(message.Response.ContentStream);
126return Response.FromValue(value, message.Response);
129throw _clientDiagnostics.CreateRequestFailedException(message.Response);
182switch (message.Response.Status)
188using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
190return Response.FromValue(value, message.Response);
193throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
221switch (message.Response.Status)
227using var document = JsonDocument.Parse(message.Response.ContentStream);
229return Response.FromValue(value, message.Response);
232throw _clientDiagnostics.CreateRequestFailedException(message.Response);
275switch (message.Response.Status)
278return message.Response;
280throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
303switch (message.Response.Status)
306return message.Response;
308throw _clientDiagnostics.CreateRequestFailedException(message.Response);
350switch (message.Response.Status)
355using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
357return Response.FromValue(value, message.Response);
360throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
382switch (message.Response.Status)
387using var document = JsonDocument.Parse(message.Response.ContentStream);
389return Response.FromValue(value, message.Response);
392throw _clientDiagnostics.CreateRequestFailedException(message.Response);
432switch (message.Response.Status)
437using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
439return Response.FromValue(value, message.Response);
442throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
469switch (message.Response.Status)
474using var document = JsonDocument.Parse(message.Response.ContentStream);
476return Response.FromValue(value, message.Response);
479throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\SubscriptionUsagesRestOperations.cs (24)
77switch (message.Response.Status)
82using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
84return Response.FromValue(value, message.Response);
87throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
104switch (message.Response.Status)
109using var document = JsonDocument.Parse(message.Response.ContentStream);
111return Response.FromValue(value, message.Response);
114throw _clientDiagnostics.CreateRequestFailedException(message.Response);
155switch (message.Response.Status)
160using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
162return Response.FromValue(value, message.Response);
165throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
187switch (message.Response.Status)
192using var document = JsonDocument.Parse(message.Response.ContentStream);
194return Response.FromValue(value, message.Response);
197throw _clientDiagnostics.CreateRequestFailedException(message.Response);
232switch (message.Response.Status)
237using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
239return Response.FromValue(value, message.Response);
242throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
264switch (message.Response.Status)
269using var document = JsonDocument.Parse(message.Response.ContentStream);
271return Response.FromValue(value, message.Response);
274throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\SyncAgentsRestOperations.cs (60)
90switch (message.Response.Status)
95using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
97return Response.FromValue(value, message.Response);
100throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
127switch (message.Response.Status)
132using var document = JsonDocument.Parse(message.Response.ContentStream);
134return Response.FromValue(value, message.Response);
137throw _clientDiagnostics.CreateRequestFailedException(message.Response);
194switch (message.Response.Status)
199return message.Response;
201throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
233switch (message.Response.Status)
238return message.Response;
240throw _clientDiagnostics.CreateRequestFailedException(message.Response);
287switch (message.Response.Status)
292return message.Response;
294throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
321switch (message.Response.Status)
326return message.Response;
328throw _clientDiagnostics.CreateRequestFailedException(message.Response);
370switch (message.Response.Status)
375using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
377return Response.FromValue(value, message.Response);
380throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
402switch (message.Response.Status)
407using var document = JsonDocument.Parse(message.Response.ContentStream);
409return Response.FromValue(value, message.Response);
412throw _clientDiagnostics.CreateRequestFailedException(message.Response);
461switch (message.Response.Status)
466using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
468return Response.FromValue(value, message.Response);
471throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
498switch (message.Response.Status)
503using var document = JsonDocument.Parse(message.Response.ContentStream);
505return Response.FromValue(value, message.Response);
508throw _clientDiagnostics.CreateRequestFailedException(message.Response);
557switch (message.Response.Status)
562using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
564return Response.FromValue(value, message.Response);
567throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
594switch (message.Response.Status)
599using var document = JsonDocument.Parse(message.Response.ContentStream);
601return Response.FromValue(value, message.Response);
604throw _clientDiagnostics.CreateRequestFailedException(message.Response);
644switch (message.Response.Status)
649using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
651return Response.FromValue(value, message.Response);
654throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
681switch (message.Response.Status)
686using var document = JsonDocument.Parse(message.Response.ContentStream);
688return Response.FromValue(value, message.Response);
691throw _clientDiagnostics.CreateRequestFailedException(message.Response);
736switch (message.Response.Status)
741using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
743return Response.FromValue(value, message.Response);
746throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
778switch (message.Response.Status)
783using var document = JsonDocument.Parse(message.Response.ContentStream);
785return Response.FromValue(value, message.Response);
788throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\SyncGroupsRestOperations.cs (108)
77switch (message.Response.Status)
82using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
84return Response.FromValue(value, message.Response);
87throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
104switch (message.Response.Status)
109using var document = JsonDocument.Parse(message.Response.ContentStream);
111return Response.FromValue(value, message.Response);
114throw _clientDiagnostics.CreateRequestFailedException(message.Response);
169switch (message.Response.Status)
173return message.Response;
175throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
207switch (message.Response.Status)
211return message.Response;
213throw _clientDiagnostics.CreateRequestFailedException(message.Response);
269switch (message.Response.Status)
274using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
276return Response.FromValue(value, message.Response);
279throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
311switch (message.Response.Status)
316using var document = JsonDocument.Parse(message.Response.ContentStream);
318return Response.FromValue(value, message.Response);
321throw _clientDiagnostics.CreateRequestFailedException(message.Response);
396switch (message.Response.Status)
401using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
403return Response.FromValue(value, message.Response);
406throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
450switch (message.Response.Status)
455using var document = JsonDocument.Parse(message.Response.ContentStream);
457return Response.FromValue(value, message.Response);
460throw _clientDiagnostics.CreateRequestFailedException(message.Response);
515switch (message.Response.Status)
518return message.Response;
520throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
552switch (message.Response.Status)
555return message.Response;
557throw _clientDiagnostics.CreateRequestFailedException(message.Response);
612switch (message.Response.Status)
615return message.Response;
617throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
649switch (message.Response.Status)
652return message.Response;
654throw _clientDiagnostics.CreateRequestFailedException(message.Response);
709switch (message.Response.Status)
714using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
716return Response.FromValue(value, message.Response);
719throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
751switch (message.Response.Status)
756using var document = JsonDocument.Parse(message.Response.ContentStream);
758return Response.FromValue(value, message.Response);
761throw _clientDiagnostics.CreateRequestFailedException(message.Response);
825switch (message.Response.Status)
830return message.Response;
832throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
869switch (message.Response.Status)
874return message.Response;
876throw _clientDiagnostics.CreateRequestFailedException(message.Response);
930switch (message.Response.Status)
935return message.Response;
937throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
969switch (message.Response.Status)
974return message.Response;
976throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1040switch (message.Response.Status)
1044return message.Response;
1046throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1083switch (message.Response.Status)
1087return message.Response;
1089throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1138switch (message.Response.Status)
1143using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1145return Response.FromValue(value, message.Response);
1148throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1175switch (message.Response.Status)
1180using var document = JsonDocument.Parse(message.Response.ContentStream);
1182return Response.FromValue(value, message.Response);
1185throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1220switch (message.Response.Status)
1225using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1227return Response.FromValue(value, message.Response);
1230throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1252switch (message.Response.Status)
1257using var document = JsonDocument.Parse(message.Response.ContentStream);
1259return Response.FromValue(value, message.Response);
1262throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1312switch (message.Response.Status)
1317using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1319return Response.FromValue(value, message.Response);
1322throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1359switch (message.Response.Status)
1364using var document = JsonDocument.Parse(message.Response.ContentStream);
1366return Response.FromValue(value, message.Response);
1369throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1431switch (message.Response.Status)
1436using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1438return Response.FromValue(value, message.Response);
1441throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1490switch (message.Response.Status)
1495using var document = JsonDocument.Parse(message.Response.ContentStream);
1497return Response.FromValue(value, message.Response);
1500throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1545switch (message.Response.Status)
1550using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1552return Response.FromValue(value, message.Response);
1555throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1587switch (message.Response.Status)
1592using var document = JsonDocument.Parse(message.Response.ContentStream);
1594return Response.FromValue(value, message.Response);
1597throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\SyncMembersRestOperations.cs (64)
104switch (message.Response.Status)
109using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
111return Response.FromValue(value, message.Response);
114throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
151switch (message.Response.Status)
156using var document = JsonDocument.Parse(message.Response.ContentStream);
158return Response.FromValue(value, message.Response);
161throw _clientDiagnostics.CreateRequestFailedException(message.Response);
232switch (message.Response.Status)
237return message.Response;
239throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
281switch (message.Response.Status)
286return message.Response;
288throw _clientDiagnostics.CreateRequestFailedException(message.Response);
349switch (message.Response.Status)
354return message.Response;
356throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
393switch (message.Response.Status)
398return message.Response;
400throw _clientDiagnostics.CreateRequestFailedException(message.Response);
471switch (message.Response.Status)
475return message.Response;
477throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
519switch (message.Response.Status)
523return message.Response;
525throw _clientDiagnostics.CreateRequestFailedException(message.Response);
581switch (message.Response.Status)
586using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
588return Response.FromValue(value, message.Response);
591throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
623switch (message.Response.Status)
628using var document = JsonDocument.Parse(message.Response.ContentStream);
630return Response.FromValue(value, message.Response);
633throw _clientDiagnostics.CreateRequestFailedException(message.Response);
696switch (message.Response.Status)
701using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
703return Response.FromValue(value, message.Response);
706throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
743switch (message.Response.Status)
748using var document = JsonDocument.Parse(message.Response.ContentStream);
750return Response.FromValue(value, message.Response);
753throw _clientDiagnostics.CreateRequestFailedException(message.Response);
815switch (message.Response.Status)
819return message.Response;
821throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
858switch (message.Response.Status)
862return message.Response;
864throw _clientDiagnostics.CreateRequestFailedException(message.Response);
914switch (message.Response.Status)
919using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
921return Response.FromValue(value, message.Response);
924throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
961switch (message.Response.Status)
966using var document = JsonDocument.Parse(message.Response.ContentStream);
968return Response.FromValue(value, message.Response);
971throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1026switch (message.Response.Status)
1031using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1033return Response.FromValue(value, message.Response);
1036throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1078switch (message.Response.Status)
1083using var document = JsonDocument.Parse(message.Response.ContentStream);
1085return Response.FromValue(value, message.Response);
1088throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\VirtualClustersRestOperations.cs (52)
68switch (message.Response.Status)
73using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
75return Response.FromValue(value, message.Response);
78throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
88switch (message.Response.Status)
93using var document = JsonDocument.Parse(message.Response.ContentStream);
95return Response.FromValue(value, message.Response);
98throw _clientDiagnostics.CreateRequestFailedException(message.Response);
133switch (message.Response.Status)
138using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
140return Response.FromValue(value, message.Response);
143throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
160switch (message.Response.Status)
165using var document = JsonDocument.Parse(message.Response.ContentStream);
167return Response.FromValue(value, message.Response);
170throw _clientDiagnostics.CreateRequestFailedException(message.Response);
211switch (message.Response.Status)
216using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
218return Response.FromValue(value, message.Response);
221throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
243switch (message.Response.Status)
248using var document = JsonDocument.Parse(message.Response.ContentStream);
250return Response.FromValue(value, message.Response);
253throw _clientDiagnostics.CreateRequestFailedException(message.Response);
293switch (message.Response.Status)
298return message.Response;
300throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
322switch (message.Response.Status)
327return message.Response;
329throw _clientDiagnostics.CreateRequestFailedException(message.Response);
379switch (message.Response.Status)
383return message.Response;
385throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
412switch (message.Response.Status)
416return message.Response;
418throw _clientDiagnostics.CreateRequestFailedException(message.Response);
448switch (message.Response.Status)
453using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
455return Response.FromValue(value, message.Response);
458throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
475switch (message.Response.Status)
480using var document = JsonDocument.Parse(message.Response.ContentStream);
482return Response.FromValue(value, message.Response);
485throw _clientDiagnostics.CreateRequestFailedException(message.Response);
520switch (message.Response.Status)
525using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
527return Response.FromValue(value, message.Response);
530throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
552switch (message.Response.Status)
557using var document = JsonDocument.Parse(message.Response.ContentStream);
559return Response.FromValue(value, message.Response);
562throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\VirtualNetworkRulesRestOperations.cs (36)
90switch (message.Response.Status)
95using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
97return Response.FromValue(value, message.Response);
100throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
127switch (message.Response.Status)
132using var document = JsonDocument.Parse(message.Response.ContentStream);
134return Response.FromValue(value, message.Response);
137throw _clientDiagnostics.CreateRequestFailedException(message.Response);
194switch (message.Response.Status)
199return message.Response;
201throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
233switch (message.Response.Status)
238return message.Response;
240throw _clientDiagnostics.CreateRequestFailedException(message.Response);
287switch (message.Response.Status)
292return message.Response;
294throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
321switch (message.Response.Status)
326return message.Response;
328throw _clientDiagnostics.CreateRequestFailedException(message.Response);
370switch (message.Response.Status)
375using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
377return Response.FromValue(value, message.Response);
380throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
402switch (message.Response.Status)
407using var document = JsonDocument.Parse(message.Response.ContentStream);
409return Response.FromValue(value, message.Response);
412throw _clientDiagnostics.CreateRequestFailedException(message.Response);
452switch (message.Response.Status)
457using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
459return Response.FromValue(value, message.Response);
462throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
489switch (message.Response.Status)
494using var document = JsonDocument.Parse(message.Response.ContentStream);
496return Response.FromValue(value, message.Response);
499throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\WorkloadClassifiersRestOperations.cs (36)
104switch (message.Response.Status)
109using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
111return Response.FromValue(value, message.Response);
114throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
151switch (message.Response.Status)
156using var document = JsonDocument.Parse(message.Response.ContentStream);
158return Response.FromValue(value, message.Response);
161throw _clientDiagnostics.CreateRequestFailedException(message.Response);
232switch (message.Response.Status)
237return message.Response;
239throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
281switch (message.Response.Status)
286return message.Response;
288throw _clientDiagnostics.CreateRequestFailedException(message.Response);
349switch (message.Response.Status)
354return message.Response;
356throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
393switch (message.Response.Status)
398return message.Response;
400throw _clientDiagnostics.CreateRequestFailedException(message.Response);
456switch (message.Response.Status)
461using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
463return Response.FromValue(value, message.Response);
466throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
498switch (message.Response.Status)
503using var document = JsonDocument.Parse(message.Response.ContentStream);
505return Response.FromValue(value, message.Response);
508throw _clientDiagnostics.CreateRequestFailedException(message.Response);
558switch (message.Response.Status)
563using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
565return Response.FromValue(value, message.Response);
568throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
605switch (message.Response.Status)
610using var document = JsonDocument.Parse(message.Response.ContentStream);
612return Response.FromValue(value, message.Response);
615throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\WorkloadGroupsRestOperations.cs (36)
97switch (message.Response.Status)
102using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
104return Response.FromValue(value, message.Response);
107throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
139switch (message.Response.Status)
144using var document = JsonDocument.Parse(message.Response.ContentStream);
146return Response.FromValue(value, message.Response);
149throw _clientDiagnostics.CreateRequestFailedException(message.Response);
213switch (message.Response.Status)
218return message.Response;
220throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
257switch (message.Response.Status)
262return message.Response;
264throw _clientDiagnostics.CreateRequestFailedException(message.Response);
318switch (message.Response.Status)
323return message.Response;
325throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
357switch (message.Response.Status)
362return message.Response;
364throw _clientDiagnostics.CreateRequestFailedException(message.Response);
413switch (message.Response.Status)
418using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
420return Response.FromValue(value, message.Response);
423throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
450switch (message.Response.Status)
455using var document = JsonDocument.Parse(message.Response.ContentStream);
457return Response.FromValue(value, message.Response);
460throw _clientDiagnostics.CreateRequestFailedException(message.Response);
505switch (message.Response.Status)
510using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
512return Response.FromValue(value, message.Response);
515throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
547switch (message.Response.Status)
552using var document = JsonDocument.Parse(message.Response.ContentStream);
554return Response.FromValue(value, message.Response);
557throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Azure.ResourceManager.Storage (712)
Generated\RestOperations\BlobContainersRestOperations.cs (118)
108switch (message.Response.Status)
113using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
115return Response.FromValue(value, message.Response);
118throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
148switch (message.Response.Status)
153using var document = JsonDocument.Parse(message.Response.ContentStream);
155return Response.FromValue(value, message.Response);
158throw _clientDiagnostics.CreateRequestFailedException(message.Response);
223switch (message.Response.Status)
229using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
231return Response.FromValue(value, message.Response);
234throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
271switch (message.Response.Status)
277using var document = JsonDocument.Parse(message.Response.ContentStream);
279return Response.FromValue(value, message.Response);
282throw _clientDiagnostics.CreateRequestFailedException(message.Response);
347switch (message.Response.Status)
352using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
354return Response.FromValue(value, message.Response);
357throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
394switch (message.Response.Status)
399using var document = JsonDocument.Parse(message.Response.ContentStream);
401return Response.FromValue(value, message.Response);
404throw _clientDiagnostics.CreateRequestFailedException(message.Response);
460switch (message.Response.Status)
465using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
467return Response.FromValue(value, message.Response);
470return Response.FromValue((BlobContainerData)null, message.Response);
472throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
504switch (message.Response.Status)
509using var document = JsonDocument.Parse(message.Response.ContentStream);
511return Response.FromValue(value, message.Response);
514return Response.FromValue((BlobContainerData)null, message.Response);
516throw _clientDiagnostics.CreateRequestFailedException(message.Response);
571switch (message.Response.Status)
575return message.Response;
577throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
609switch (message.Response.Status)
613return message.Response;
615throw _clientDiagnostics.CreateRequestFailedException(message.Response);
681switch (message.Response.Status)
686using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
688return Response.FromValue(value, message.Response);
691throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
728switch (message.Response.Status)
733using var document = JsonDocument.Parse(message.Response.ContentStream);
735return Response.FromValue(value, message.Response);
738throw _clientDiagnostics.CreateRequestFailedException(message.Response);
804switch (message.Response.Status)
809using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
811return Response.FromValue(value, message.Response);
814throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
851switch (message.Response.Status)
856using var document = JsonDocument.Parse(message.Response.ContentStream);
858return Response.FromValue(value, message.Response);
861throw _clientDiagnostics.CreateRequestFailedException(message.Response);
932switch (message.Response.Status)
937using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
939return Response.FromValue(value, message.Response);
942throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
976switch (message.Response.Status)
981using var document = JsonDocument.Parse(message.Response.ContentStream);
983return Response.FromValue(value, message.Response);
986throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1049switch (message.Response.Status)
1054using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1056return Response.FromValue(value, message.Response);
1059throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1092switch (message.Response.Status)
1097using var document = JsonDocument.Parse(message.Response.ContentStream);
1099return Response.FromValue(value, message.Response);
1102throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1166switch (message.Response.Status)
1171using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1173return Response.FromValue(value, message.Response);
1176throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1213switch (message.Response.Status)
1218using var document = JsonDocument.Parse(message.Response.ContentStream);
1220return Response.FromValue(value, message.Response);
1223throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1286switch (message.Response.Status)
1291using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1293return Response.FromValue(value, message.Response);
1296throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1333switch (message.Response.Status)
1338using var document = JsonDocument.Parse(message.Response.ContentStream);
1340return Response.FromValue(value, message.Response);
1343throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1414switch (message.Response.Status)
1419using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1421return Response.FromValue(value, message.Response);
1424throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1462switch (message.Response.Status)
1467using var document = JsonDocument.Parse(message.Response.ContentStream);
1469return Response.FromValue(value, message.Response);
1472throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1537switch (message.Response.Status)
1542using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1544return Response.FromValue(value, message.Response);
1547throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1580switch (message.Response.Status)
1585using var document = JsonDocument.Parse(message.Response.ContentStream);
1587return Response.FromValue(value, message.Response);
1590throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1647switch (message.Response.Status)
1651return message.Response;
1653throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1685switch (message.Response.Status)
1689return message.Response;
1691throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1740switch (message.Response.Status)
1745using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1747return Response.FromValue(value, message.Response);
1750throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1785switch (message.Response.Status)
1790using var document = JsonDocument.Parse(message.Response.ContentStream);
1792return Response.FromValue(value, message.Response);
1795throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\BlobInventoryPoliciesRestOperations.cs (32)
88switch (message.Response.Status)
93using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
95return Response.FromValue(value, message.Response);
98return Response.FromValue((BlobInventoryPolicyData)null, message.Response);
100throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
123switch (message.Response.Status)
128using var document = JsonDocument.Parse(message.Response.ContentStream);
130return Response.FromValue(value, message.Response);
133return Response.FromValue((BlobInventoryPolicyData)null, message.Response);
135throw _clientDiagnostics.CreateRequestFailedException(message.Response);
189switch (message.Response.Status)
194using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
196return Response.FromValue(value, message.Response);
199throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
227switch (message.Response.Status)
232using var document = JsonDocument.Parse(message.Response.ContentStream);
234return Response.FromValue(value, message.Response);
237throw _clientDiagnostics.CreateRequestFailedException(message.Response);
282switch (message.Response.Status)
286return message.Response;
288throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
311switch (message.Response.Status)
315return message.Response;
317throw _clientDiagnostics.CreateRequestFailedException(message.Response);
360switch (message.Response.Status)
365using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
367return Response.FromValue(value, message.Response);
370throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
392switch (message.Response.Status)
397using var document = JsonDocument.Parse(message.Response.ContentStream);
399return Response.FromValue(value, message.Response);
402throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\BlobServicesRestOperations.cs (26)
86switch (message.Response.Status)
91using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
93return Response.FromValue(value, message.Response);
96throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
118switch (message.Response.Status)
123using var document = JsonDocument.Parse(message.Response.ContentStream);
125return Response.FromValue(value, message.Response);
128throw _clientDiagnostics.CreateRequestFailedException(message.Response);
186switch (message.Response.Status)
191using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
193return Response.FromValue(value, message.Response);
196throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
228switch (message.Response.Status)
233using var document = JsonDocument.Parse(message.Response.ContentStream);
235return Response.FromValue(value, message.Response);
238throw _clientDiagnostics.CreateRequestFailedException(message.Response);
287switch (message.Response.Status)
292using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
294return Response.FromValue(value, message.Response);
297return Response.FromValue((BlobServiceData)null, message.Response);
299throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
326switch (message.Response.Status)
331using var document = JsonDocument.Parse(message.Response.ContentStream);
333return Response.FromValue(value, message.Response);
336return Response.FromValue((BlobServiceData)null, message.Response);
338throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\DeletedAccountsRestOperations.cs (24)
70switch (message.Response.Status)
75using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
77return Response.FromValue(value, message.Response);
80throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
90switch (message.Response.Status)
95using var document = JsonDocument.Parse(message.Response.ContentStream);
97return Response.FromValue(value, message.Response);
100throw _clientDiagnostics.CreateRequestFailedException(message.Response);
142switch (message.Response.Status)
147using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
149return Response.FromValue(value, message.Response);
152throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
174switch (message.Response.Status)
179using var document = JsonDocument.Parse(message.Response.ContentStream);
181return Response.FromValue(value, message.Response);
184throw _clientDiagnostics.CreateRequestFailedException(message.Response);
215switch (message.Response.Status)
220using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
222return Response.FromValue(value, message.Response);
225throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
242switch (message.Response.Status)
247using var document = JsonDocument.Parse(message.Response.ContentStream);
249return Response.FromValue(value, message.Response);
252throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\EncryptionScopesRestOperations.cs (42)
101switch (message.Response.Status)
107using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
109return Response.FromValue(value, message.Response);
112throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
144switch (message.Response.Status)
150using var document = JsonDocument.Parse(message.Response.ContentStream);
152return Response.FromValue(value, message.Response);
155throw _clientDiagnostics.CreateRequestFailedException(message.Response);
213switch (message.Response.Status)
218using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
220return Response.FromValue(value, message.Response);
223throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
255switch (message.Response.Status)
260using var document = JsonDocument.Parse(message.Response.ContentStream);
262return Response.FromValue(value, message.Response);
265throw _clientDiagnostics.CreateRequestFailedException(message.Response);
314switch (message.Response.Status)
319using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
321return Response.FromValue(value, message.Response);
324return Response.FromValue((EncryptionScopeData)null, message.Response);
326throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
353switch (message.Response.Status)
358using var document = JsonDocument.Parse(message.Response.ContentStream);
360return Response.FromValue(value, message.Response);
363return Response.FromValue((EncryptionScopeData)null, message.Response);
365throw _clientDiagnostics.CreateRequestFailedException(message.Response);
408switch (message.Response.Status)
413using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
415return Response.FromValue(value, message.Response);
418throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
440switch (message.Response.Status)
445using var document = JsonDocument.Parse(message.Response.ContentStream);
447return Response.FromValue(value, message.Response);
450throw _clientDiagnostics.CreateRequestFailedException(message.Response);
491switch (message.Response.Status)
496using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
498return Response.FromValue(value, message.Response);
501throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
528switch (message.Response.Status)
533using var document = JsonDocument.Parse(message.Response.ContentStream);
535return Response.FromValue(value, message.Response);
538throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\FileServicesRestOperations.cs (26)
86switch (message.Response.Status)
91using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
93return Response.FromValue(value, message.Response);
96throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
118switch (message.Response.Status)
123using var document = JsonDocument.Parse(message.Response.ContentStream);
125return Response.FromValue(value, message.Response);
128throw _clientDiagnostics.CreateRequestFailedException(message.Response);
186switch (message.Response.Status)
191using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
193return Response.FromValue(value, message.Response);
196throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
228switch (message.Response.Status)
233using var document = JsonDocument.Parse(message.Response.ContentStream);
235return Response.FromValue(value, message.Response);
238throw _clientDiagnostics.CreateRequestFailedException(message.Response);
287switch (message.Response.Status)
292using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
294return Response.FromValue(value, message.Response);
297return Response.FromValue((FileServiceData)null, message.Response);
299throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
326switch (message.Response.Status)
331using var document = JsonDocument.Parse(message.Response.ContentStream);
333return Response.FromValue(value, message.Response);
336return Response.FromValue((FileServiceData)null, message.Response);
338throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\FileSharesRestOperations.cs (62)
108switch (message.Response.Status)
113using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
115return Response.FromValue(value, message.Response);
118throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
148switch (message.Response.Status)
153using var document = JsonDocument.Parse(message.Response.ContentStream);
155return Response.FromValue(value, message.Response);
158throw _clientDiagnostics.CreateRequestFailedException(message.Response);
228switch (message.Response.Status)
234using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
236return Response.FromValue(value, message.Response);
239throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
277switch (message.Response.Status)
283using var document = JsonDocument.Parse(message.Response.ContentStream);
285return Response.FromValue(value, message.Response);
288throw _clientDiagnostics.CreateRequestFailedException(message.Response);
353switch (message.Response.Status)
358using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
360return Response.FromValue(value, message.Response);
363throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
400switch (message.Response.Status)
405using var document = JsonDocument.Parse(message.Response.ContentStream);
407return Response.FromValue(value, message.Response);
410throw _clientDiagnostics.CreateRequestFailedException(message.Response);
476switch (message.Response.Status)
481using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
483return Response.FromValue(value, message.Response);
486return Response.FromValue((FileShareData)null, message.Response);
488throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
522switch (message.Response.Status)
527using var document = JsonDocument.Parse(message.Response.ContentStream);
529return Response.FromValue(value, message.Response);
532return Response.FromValue((FileShareData)null, message.Response);
534throw _clientDiagnostics.CreateRequestFailedException(message.Response);
600switch (message.Response.Status)
604return message.Response;
606throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
640switch (message.Response.Status)
644return message.Response;
646throw _clientDiagnostics.CreateRequestFailedException(message.Response);
712switch (message.Response.Status)
715return message.Response;
717throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
754switch (message.Response.Status)
757return message.Response;
759throw _clientDiagnostics.CreateRequestFailedException(message.Response);
829switch (message.Response.Status)
834using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
836return Response.FromValue(value, message.Response);
839throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
873switch (message.Response.Status)
878using var document = JsonDocument.Parse(message.Response.ContentStream);
880return Response.FromValue(value, message.Response);
883throw _clientDiagnostics.CreateRequestFailedException(message.Response);
932switch (message.Response.Status)
937using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
939return Response.FromValue(value, message.Response);
942throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
977switch (message.Response.Status)
982using var document = JsonDocument.Parse(message.Response.ContentStream);
984return Response.FromValue(value, message.Response);
987throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ManagementPoliciesRestOperations.cs (24)
88switch (message.Response.Status)
93using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
95return Response.FromValue(value, message.Response);
98return Response.FromValue((ManagementPolicyData)null, message.Response);
100throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
123switch (message.Response.Status)
128using var document = JsonDocument.Parse(message.Response.ContentStream);
130return Response.FromValue(value, message.Response);
133return Response.FromValue((ManagementPolicyData)null, message.Response);
135throw _clientDiagnostics.CreateRequestFailedException(message.Response);
189switch (message.Response.Status)
194using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
196return Response.FromValue(value, message.Response);
199throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
227switch (message.Response.Status)
232using var document = JsonDocument.Parse(message.Response.ContentStream);
234return Response.FromValue(value, message.Response);
237throw _clientDiagnostics.CreateRequestFailedException(message.Response);
281switch (message.Response.Status)
285return message.Response;
287throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
310switch (message.Response.Status)
314return message.Response;
316throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\ObjectReplicationPoliciesRestOperations.cs (32)
86switch (message.Response.Status)
91using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
93return Response.FromValue(value, message.Response);
96throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
118switch (message.Response.Status)
123using var document = JsonDocument.Parse(message.Response.ContentStream);
125return Response.FromValue(value, message.Response);
128throw _clientDiagnostics.CreateRequestFailedException(message.Response);
177switch (message.Response.Status)
182using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
184return Response.FromValue(value, message.Response);
187return Response.FromValue((ObjectReplicationPolicyData)null, message.Response);
189throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
216switch (message.Response.Status)
221using var document = JsonDocument.Parse(message.Response.ContentStream);
223return Response.FromValue(value, message.Response);
226return Response.FromValue((ObjectReplicationPolicyData)null, message.Response);
228throw _clientDiagnostics.CreateRequestFailedException(message.Response);
286switch (message.Response.Status)
291using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
293return Response.FromValue(value, message.Response);
296throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
328switch (message.Response.Status)
333using var document = JsonDocument.Parse(message.Response.ContentStream);
335return Response.FromValue(value, message.Response);
338throw _clientDiagnostics.CreateRequestFailedException(message.Response);
387switch (message.Response.Status)
391return message.Response;
393throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
420switch (message.Response.Status)
424return message.Response;
426throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\PrivateEndpointConnectionsRestOperations.cs (32)
86switch (message.Response.Status)
91using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
93return Response.FromValue(value, message.Response);
96throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
118switch (message.Response.Status)
123using var document = JsonDocument.Parse(message.Response.ContentStream);
125return Response.FromValue(value, message.Response);
128throw _clientDiagnostics.CreateRequestFailedException(message.Response);
177switch (message.Response.Status)
182using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
184return Response.FromValue(value, message.Response);
187return Response.FromValue((PrivateEndpointConnectionData)null, message.Response);
189throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
216switch (message.Response.Status)
221using var document = JsonDocument.Parse(message.Response.ContentStream);
223return Response.FromValue(value, message.Response);
226return Response.FromValue((PrivateEndpointConnectionData)null, message.Response);
228throw _clientDiagnostics.CreateRequestFailedException(message.Response);
286switch (message.Response.Status)
291using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
293return Response.FromValue(value, message.Response);
296throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
328switch (message.Response.Status)
333using var document = JsonDocument.Parse(message.Response.ContentStream);
335return Response.FromValue(value, message.Response);
338throw _clientDiagnostics.CreateRequestFailedException(message.Response);
387switch (message.Response.Status)
391return message.Response;
393throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
420switch (message.Response.Status)
424return message.Response;
426throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\QueueRestOperations.cs (48)
108switch (message.Response.Status)
113using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
115return Response.FromValue(value, message.Response);
118throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
155switch (message.Response.Status)
160using var document = JsonDocument.Parse(message.Response.ContentStream);
162return Response.FromValue(value, message.Response);
165throw _clientDiagnostics.CreateRequestFailedException(message.Response);
230switch (message.Response.Status)
235using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
237return Response.FromValue(value, message.Response);
240throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
277switch (message.Response.Status)
282using var document = JsonDocument.Parse(message.Response.ContentStream);
284return Response.FromValue(value, message.Response);
287throw _clientDiagnostics.CreateRequestFailedException(message.Response);
343switch (message.Response.Status)
348using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
350return Response.FromValue(value, message.Response);
353return Response.FromValue((StorageQueueData)null, message.Response);
355throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
387switch (message.Response.Status)
392using var document = JsonDocument.Parse(message.Response.ContentStream);
394return Response.FromValue(value, message.Response);
397return Response.FromValue((StorageQueueData)null, message.Response);
399throw _clientDiagnostics.CreateRequestFailedException(message.Response);
455switch (message.Response.Status)
458return message.Response;
460throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
492switch (message.Response.Status)
495return message.Response;
497throw _clientDiagnostics.CreateRequestFailedException(message.Response);
557switch (message.Response.Status)
562using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
564return Response.FromValue(value, message.Response);
567throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
596switch (message.Response.Status)
601using var document = JsonDocument.Parse(message.Response.ContentStream);
603return Response.FromValue(value, message.Response);
606throw _clientDiagnostics.CreateRequestFailedException(message.Response);
654switch (message.Response.Status)
659using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
661return Response.FromValue(value, message.Response);
664throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
698switch (message.Response.Status)
703using var document = JsonDocument.Parse(message.Response.ContentStream);
705return Response.FromValue(value, message.Response);
708throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\QueueServicesRestOperations.cs (26)
86switch (message.Response.Status)
91using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
93return Response.FromValue(value, message.Response);
96throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
118switch (message.Response.Status)
123using var document = JsonDocument.Parse(message.Response.ContentStream);
125return Response.FromValue(value, message.Response);
128throw _clientDiagnostics.CreateRequestFailedException(message.Response);
186switch (message.Response.Status)
191using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
193return Response.FromValue(value, message.Response);
196throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
228switch (message.Response.Status)
233using var document = JsonDocument.Parse(message.Response.ContentStream);
235return Response.FromValue(value, message.Response);
238throw _clientDiagnostics.CreateRequestFailedException(message.Response);
287switch (message.Response.Status)
292using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
294return Response.FromValue(value, message.Response);
297return Response.FromValue((QueueServiceData)null, message.Response);
299throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
326switch (message.Response.Status)
331using var document = JsonDocument.Parse(message.Response.ContentStream);
333return Response.FromValue(value, message.Response);
336return Response.FromValue((QueueServiceData)null, message.Response);
338throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\StorageAccountsRestOperations.cs (112)
94switch (message.Response.Status)
98return message.Response;
100throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
127switch (message.Response.Status)
131return message.Response;
133throw _clientDiagnostics.CreateRequestFailedException(message.Response);
174switch (message.Response.Status)
178return message.Response;
180throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
202switch (message.Response.Status)
206return message.Response;
208throw _clientDiagnostics.CreateRequestFailedException(message.Response);
255switch (message.Response.Status)
260using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
262return Response.FromValue(value, message.Response);
265return Response.FromValue((StorageAccountData)null, message.Response);
267throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
290switch (message.Response.Status)
295using var document = JsonDocument.Parse(message.Response.ContentStream);
297return Response.FromValue(value, message.Response);
300return Response.FromValue((StorageAccountData)null, message.Response);
302throw _clientDiagnostics.CreateRequestFailedException(message.Response);
353switch (message.Response.Status)
358using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
360return Response.FromValue(value, message.Response);
363throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
390switch (message.Response.Status)
395using var document = JsonDocument.Parse(message.Response.ContentStream);
397return Response.FromValue(value, message.Response);
400throw _clientDiagnostics.CreateRequestFailedException(message.Response);
427switch (message.Response.Status)
432using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
434return Response.FromValue(value, message.Response);
437throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
447switch (message.Response.Status)
452using var document = JsonDocument.Parse(message.Response.ContentStream);
454return Response.FromValue(value, message.Response);
457throw _clientDiagnostics.CreateRequestFailedException(message.Response);
493switch (message.Response.Status)
498using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
500return Response.FromValue(value, message.Response);
503throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
520switch (message.Response.Status)
525using var document = JsonDocument.Parse(message.Response.ContentStream);
527return Response.FromValue(value, message.Response);
530throw _clientDiagnostics.CreateRequestFailedException(message.Response);
574switch (message.Response.Status)
579using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
581return Response.FromValue(value, message.Response);
584throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
606switch (message.Response.Status)
611using var document = JsonDocument.Parse(message.Response.ContentStream);
613return Response.FromValue(value, message.Response);
616throw _clientDiagnostics.CreateRequestFailedException(message.Response);
668switch (message.Response.Status)
673using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
675return Response.FromValue(value, message.Response);
678throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
705switch (message.Response.Status)
710using var document = JsonDocument.Parse(message.Response.ContentStream);
712return Response.FromValue(value, message.Response);
715throw _clientDiagnostics.CreateRequestFailedException(message.Response);
767switch (message.Response.Status)
772using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
774return Response.FromValue(value, message.Response);
777throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
804switch (message.Response.Status)
809using var document = JsonDocument.Parse(message.Response.ContentStream);
811return Response.FromValue(value, message.Response);
814throw _clientDiagnostics.CreateRequestFailedException(message.Response);
866switch (message.Response.Status)
871using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
873return Response.FromValue(value, message.Response);
876throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
903switch (message.Response.Status)
908using var document = JsonDocument.Parse(message.Response.ContentStream);
910return Response.FromValue(value, message.Response);
913throw _clientDiagnostics.CreateRequestFailedException(message.Response);
955switch (message.Response.Status)
959return message.Response;
961throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
983switch (message.Response.Status)
987return message.Response;
989throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1041switch (message.Response.Status)
1045return message.Response;
1047throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1074switch (message.Response.Status)
1078return message.Response;
1080throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1122switch (message.Response.Status)
1125return message.Response;
1127throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1149switch (message.Response.Status)
1152return message.Response;
1154throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1185switch (message.Response.Status)
1190using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1192return Response.FromValue(value, message.Response);
1195throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1212switch (message.Response.Status)
1217using var document = JsonDocument.Parse(message.Response.ContentStream);
1219return Response.FromValue(value, message.Response);
1222throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1258switch (message.Response.Status)
1263using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1265return Response.FromValue(value, message.Response);
1268throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1290switch (message.Response.Status)
1295using var document = JsonDocument.Parse(message.Response.ContentStream);
1297return Response.FromValue(value, message.Response);
1300throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\TableRestOperations.cs (48)
99switch (message.Response.Status)
104using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
106return Response.FromValue(value, message.Response);
109throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
141switch (message.Response.Status)
146using var document = JsonDocument.Parse(message.Response.ContentStream);
148return Response.FromValue(value, message.Response);
151throw _clientDiagnostics.CreateRequestFailedException(message.Response);
207switch (message.Response.Status)
212using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
214return Response.FromValue(value, message.Response);
217throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
249switch (message.Response.Status)
254using var document = JsonDocument.Parse(message.Response.ContentStream);
256return Response.FromValue(value, message.Response);
259throw _clientDiagnostics.CreateRequestFailedException(message.Response);
315switch (message.Response.Status)
320using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
322return Response.FromValue(value, message.Response);
325return Response.FromValue((TableData)null, message.Response);
327throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
359switch (message.Response.Status)
364using var document = JsonDocument.Parse(message.Response.ContentStream);
366return Response.FromValue(value, message.Response);
369return Response.FromValue((TableData)null, message.Response);
371throw _clientDiagnostics.CreateRequestFailedException(message.Response);
427switch (message.Response.Status)
430return message.Response;
432throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
464switch (message.Response.Status)
467return message.Response;
469throw _clientDiagnostics.CreateRequestFailedException(message.Response);
519switch (message.Response.Status)
524using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
526return Response.FromValue(value, message.Response);
529throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
556switch (message.Response.Status)
561using var document = JsonDocument.Parse(message.Response.ContentStream);
563return Response.FromValue(value, message.Response);
566throw _clientDiagnostics.CreateRequestFailedException(message.Response);
612switch (message.Response.Status)
617using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
619return Response.FromValue(value, message.Response);
622throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
654switch (message.Response.Status)
659using var document = JsonDocument.Parse(message.Response.ContentStream);
661return Response.FromValue(value, message.Response);
664throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RestOperations\TableServicesRestOperations.cs (26)
86switch (message.Response.Status)
91using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
93return Response.FromValue(value, message.Response);
96throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
118switch (message.Response.Status)
123using var document = JsonDocument.Parse(message.Response.ContentStream);
125return Response.FromValue(value, message.Response);
128throw _clientDiagnostics.CreateRequestFailedException(message.Response);
186switch (message.Response.Status)
191using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
193return Response.FromValue(value, message.Response);
196throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
228switch (message.Response.Status)
233using var document = JsonDocument.Parse(message.Response.ContentStream);
235return Response.FromValue(value, message.Response);
238throw _clientDiagnostics.CreateRequestFailedException(message.Response);
287switch (message.Response.Status)
292using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
294return Response.FromValue(value, message.Response);
297return Response.FromValue((TableServiceData)null, message.Response);
299throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
326switch (message.Response.Status)
331using var document = JsonDocument.Parse(message.Response.ContentStream);
333return Response.FromValue(value, message.Response);
336return Response.FromValue((TableServiceData)null, message.Response);
338throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Azure.ResourceManager.Tests (1)
Azure.Search.Documents (306)
Generated\DataSourcesRestClient.cs (38)
97switch (message.Response.Status)
103using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
105return Response.FromValue(value, message.Response);
108throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
133switch (message.Response.Status)
139using var document = JsonDocument.Parse(message.Response.ContentStream);
141return Response.FromValue(value, message.Response);
144throw _clientDiagnostics.CreateRequestFailedException(message.Response);
187switch (message.Response.Status)
191return message.Response;
193throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
212switch (message.Response.Status)
216return message.Response;
218throw _clientDiagnostics.CreateRequestFailedException(message.Response);
251switch (message.Response.Status)
256using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
258return Response.FromValue(value, message.Response);
261throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
278switch (message.Response.Status)
283using var document = JsonDocument.Parse(message.Response.ContentStream);
285return Response.FromValue(value, message.Response);
288throw _clientDiagnostics.CreateRequestFailedException(message.Response);
317switch (message.Response.Status)
322using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
324return Response.FromValue(value, message.Response);
327throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
338switch (message.Response.Status)
343using var document = JsonDocument.Parse(message.Response.ContentStream);
345return Response.FromValue(value, message.Response);
348throw _clientDiagnostics.CreateRequestFailedException(message.Response);
383switch (message.Response.Status)
388using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
390return Response.FromValue(value, message.Response);
393throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
410switch (message.Response.Status)
415using var document = JsonDocument.Parse(message.Response.ContentStream);
417return Response.FromValue(value, message.Response);
420throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\DocumentsRestClient.cs (48)
70switch (message.Response.Status)
75using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
77return Response.FromValue(value, message.Response);
80throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
90switch (message.Response.Status)
95using var document = JsonDocument.Parse(message.Response.ContentStream);
97return Response.FromValue(value, message.Response);
100throw _clientDiagnostics.CreateRequestFailedException(message.Response);
138switch (message.Response.Status)
143using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
145return Response.FromValue(value, message.Response);
148throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
165switch (message.Response.Status)
170using var document = JsonDocument.Parse(message.Response.ContentStream);
172return Response.FromValue(value, message.Response);
175throw _clientDiagnostics.CreateRequestFailedException(message.Response);
216switch (message.Response.Status)
221using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
228return Response.FromValue(value, message.Response);
231throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
249switch (message.Response.Status)
254using var document = JsonDocument.Parse(message.Response.ContentStream);
261return Response.FromValue(value, message.Response);
264throw _clientDiagnostics.CreateRequestFailedException(message.Response);
302switch (message.Response.Status)
307using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
309return Response.FromValue(value, message.Response);
312throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
329switch (message.Response.Status)
334using var document = JsonDocument.Parse(message.Response.ContentStream);
336return Response.FromValue(value, message.Response);
339throw _clientDiagnostics.CreateRequestFailedException(message.Response);
377switch (message.Response.Status)
383using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
385return Response.FromValue(value, message.Response);
388throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
405switch (message.Response.Status)
411using var document = JsonDocument.Parse(message.Response.ContentStream);
413return Response.FromValue(value, message.Response);
416throw _clientDiagnostics.CreateRequestFailedException(message.Response);
454switch (message.Response.Status)
459using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
461return Response.FromValue(value, message.Response);
464throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
481switch (message.Response.Status)
486using var document = JsonDocument.Parse(message.Response.ContentStream);
488return Response.FromValue(value, message.Response);
491throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\IndexersRestClient.cs (58)
72switch (message.Response.Status)
75return message.Response;
77throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
94switch (message.Response.Status)
97return message.Response;
99throw _clientDiagnostics.CreateRequestFailedException(message.Response);
132switch (message.Response.Status)
135return message.Response;
137throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
154switch (message.Response.Status)
157return message.Response;
159throw _clientDiagnostics.CreateRequestFailedException(message.Response);
222switch (message.Response.Status)
228using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
230return Response.FromValue(value, message.Response);
233throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
259switch (message.Response.Status)
265using var document = JsonDocument.Parse(message.Response.ContentStream);
267return Response.FromValue(value, message.Response);
270throw _clientDiagnostics.CreateRequestFailedException(message.Response);
313switch (message.Response.Status)
317return message.Response;
319throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
338switch (message.Response.Status)
342return message.Response;
344throw _clientDiagnostics.CreateRequestFailedException(message.Response);
377switch (message.Response.Status)
382using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
384return Response.FromValue(value, message.Response);
387throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
404switch (message.Response.Status)
409using var document = JsonDocument.Parse(message.Response.ContentStream);
411return Response.FromValue(value, message.Response);
414throw _clientDiagnostics.CreateRequestFailedException(message.Response);
443switch (message.Response.Status)
448using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
450return Response.FromValue(value, message.Response);
453throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
464switch (message.Response.Status)
469using var document = JsonDocument.Parse(message.Response.ContentStream);
471return Response.FromValue(value, message.Response);
474throw _clientDiagnostics.CreateRequestFailedException(message.Response);
509switch (message.Response.Status)
514using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
516return Response.FromValue(value, message.Response);
519throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
536switch (message.Response.Status)
541using var document = JsonDocument.Parse(message.Response.ContentStream);
543return Response.FromValue(value, message.Response);
546throw _clientDiagnostics.CreateRequestFailedException(message.Response);
579switch (message.Response.Status)
584using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
586return Response.FromValue(value, message.Response);
589throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
606switch (message.Response.Status)
611using var document = JsonDocument.Parse(message.Response.ContentStream);
613return Response.FromValue(value, message.Response);
616throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\IndexesRestClient.cs (54)
74switch (message.Response.Status)
79using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
81return Response.FromValue(value, message.Response);
84throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
101switch (message.Response.Status)
106using var document = JsonDocument.Parse(message.Response.ContentStream);
108return Response.FromValue(value, message.Response);
111throw _clientDiagnostics.CreateRequestFailedException(message.Response);
140switch (message.Response.Status)
145using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
147return Response.FromValue(value, message.Response);
150throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
161switch (message.Response.Status)
166using var document = JsonDocument.Parse(message.Response.ContentStream);
168return Response.FromValue(value, message.Response);
171throw _clientDiagnostics.CreateRequestFailedException(message.Response);
229switch (message.Response.Status)
235using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
237return Response.FromValue(value, message.Response);
240throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
265switch (message.Response.Status)
271using var document = JsonDocument.Parse(message.Response.ContentStream);
273return Response.FromValue(value, message.Response);
276throw _clientDiagnostics.CreateRequestFailedException(message.Response);
319switch (message.Response.Status)
323return message.Response;
325throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
344switch (message.Response.Status)
348return message.Response;
350throw _clientDiagnostics.CreateRequestFailedException(message.Response);
383switch (message.Response.Status)
388using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
390return Response.FromValue(value, message.Response);
393throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
410switch (message.Response.Status)
415using var document = JsonDocument.Parse(message.Response.ContentStream);
417return Response.FromValue(value, message.Response);
420throw _clientDiagnostics.CreateRequestFailedException(message.Response);
453switch (message.Response.Status)
458using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
460return Response.FromValue(value, message.Response);
463throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
480switch (message.Response.Status)
485using var document = JsonDocument.Parse(message.Response.ContentStream);
487return Response.FromValue(value, message.Response);
490throw _clientDiagnostics.CreateRequestFailedException(message.Response);
532switch (message.Response.Status)
537using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
539return Response.FromValue(value, message.Response);
542throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
564switch (message.Response.Status)
569using var document = JsonDocument.Parse(message.Response.ContentStream);
571return Response.FromValue(value, message.Response);
574throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\SkillsetsRestClient.cs (38)
102switch (message.Response.Status)
108using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
110return Response.FromValue(value, message.Response);
113throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
139switch (message.Response.Status)
145using var document = JsonDocument.Parse(message.Response.ContentStream);
147return Response.FromValue(value, message.Response);
150throw _clientDiagnostics.CreateRequestFailedException(message.Response);
193switch (message.Response.Status)
197return message.Response;
199throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
218switch (message.Response.Status)
222return message.Response;
224throw _clientDiagnostics.CreateRequestFailedException(message.Response);
257switch (message.Response.Status)
262using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
264return Response.FromValue(value, message.Response);
267throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
284switch (message.Response.Status)
289using var document = JsonDocument.Parse(message.Response.ContentStream);
291return Response.FromValue(value, message.Response);
294throw _clientDiagnostics.CreateRequestFailedException(message.Response);
323switch (message.Response.Status)
328using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
330return Response.FromValue(value, message.Response);
333throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
344switch (message.Response.Status)
349using var document = JsonDocument.Parse(message.Response.ContentStream);
351return Response.FromValue(value, message.Response);
354throw _clientDiagnostics.CreateRequestFailedException(message.Response);
389switch (message.Response.Status)
394using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
396return Response.FromValue(value, message.Response);
399throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
416switch (message.Response.Status)
421using var document = JsonDocument.Parse(message.Response.ContentStream);
423return Response.FromValue(value, message.Response);
426throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\SynonymMapsRestClient.cs (38)
92switch (message.Response.Status)
98using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
100return Response.FromValue(value, message.Response);
103throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
127switch (message.Response.Status)
133using var document = JsonDocument.Parse(message.Response.ContentStream);
135return Response.FromValue(value, message.Response);
138throw _clientDiagnostics.CreateRequestFailedException(message.Response);
181switch (message.Response.Status)
185return message.Response;
187throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
206switch (message.Response.Status)
210return message.Response;
212throw _clientDiagnostics.CreateRequestFailedException(message.Response);
245switch (message.Response.Status)
250using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
252return Response.FromValue(value, message.Response);
255throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
272switch (message.Response.Status)
277using var document = JsonDocument.Parse(message.Response.ContentStream);
279return Response.FromValue(value, message.Response);
282throw _clientDiagnostics.CreateRequestFailedException(message.Response);
311switch (message.Response.Status)
316using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
318return Response.FromValue(value, message.Response);
321throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
332switch (message.Response.Status)
337using var document = JsonDocument.Parse(message.Response.ContentStream);
339return Response.FromValue(value, message.Response);
342throw _clientDiagnostics.CreateRequestFailedException(message.Response);
377switch (message.Response.Status)
382using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
384return Response.FromValue(value, message.Response);
387throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
404switch (message.Response.Status)
409using var document = JsonDocument.Parse(message.Response.ContentStream);
411return Response.FromValue(value, message.Response);
414throw _clientDiagnostics.CreateRequestFailedException(message.Response);
SearchClient.cs (22)
696switch (message.Response.Status)
700T value = await message.Response.ContentStream.DeserializeAsync<T>(
705return Response.FromValue(value, message.Response);
709await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false) :
710ClientDiagnostics.CreateRequestFailedException(message.Response);
879switch (message.Response.Status)
885message.Response.ContentStream,
893results.ConfigurePaging(this, message.Response);
895return Response.FromValue(results, message.Response);
899await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false) :
900ClientDiagnostics.CreateRequestFailedException(message.Response);
1050switch (message.Response.Status)
1055message.Response.ContentStream,
1060return Response.FromValue(suggestions, message.Response);
1064await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false) :
1065ClientDiagnostics.CreateRequestFailedException(message.Response);
1350switch (message.Response.Status)
1357await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false) :
1358JsonDocument.Parse(message.Response.ContentStream, default);
1391return Response.FromValue(value, message.Response);
1395await ClientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false) :
1396ClientDiagnostics.CreateRequestFailedException(message.Response);
Azure.Security.Attestation (90)
Generated\AttestationRestClient.cs (24)
70switch (message.Response.Status)
75using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
77return Response.FromValue(value, message.Response);
80throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
97switch (message.Response.Status)
102using var document = JsonDocument.Parse(message.Response.ContentStream);
104return Response.FromValue(value, message.Response);
107throw _clientDiagnostics.CreateRequestFailedException(message.Response);
142switch (message.Response.Status)
147using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
149return Response.FromValue(value, message.Response);
152throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
169switch (message.Response.Status)
174using var document = JsonDocument.Parse(message.Response.ContentStream);
176return Response.FromValue(value, message.Response);
179throw _clientDiagnostics.CreateRequestFailedException(message.Response);
214switch (message.Response.Status)
219using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
221return Response.FromValue(value, message.Response);
224throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
241switch (message.Response.Status)
246using var document = JsonDocument.Parse(message.Response.ContentStream);
248return Response.FromValue(value, message.Response);
251throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\PolicyCertificatesRestClient.cs (24)
59switch (message.Response.Status)
64using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
66return Response.FromValue(value, message.Response);
69throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
79switch (message.Response.Status)
84using var document = JsonDocument.Parse(message.Response.ContentStream);
86return Response.FromValue(value, message.Response);
89throw _clientDiagnostics.CreateRequestFailedException(message.Response);
124switch (message.Response.Status)
129using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
131return Response.FromValue(value, message.Response);
134throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
151switch (message.Response.Status)
156using var document = JsonDocument.Parse(message.Response.ContentStream);
158return Response.FromValue(value, message.Response);
161throw _clientDiagnostics.CreateRequestFailedException(message.Response);
196switch (message.Response.Status)
201using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
203return Response.FromValue(value, message.Response);
206throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
223switch (message.Response.Status)
228using var document = JsonDocument.Parse(message.Response.ContentStream);
230return Response.FromValue(value, message.Response);
233throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\PolicyRestClient.cs (24)
61switch (message.Response.Status)
66using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
68return Response.FromValue(value, message.Response);
71throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
82switch (message.Response.Status)
87using var document = JsonDocument.Parse(message.Response.ContentStream);
89return Response.FromValue(value, message.Response);
92throw _clientDiagnostics.CreateRequestFailedException(message.Response);
127switch (message.Response.Status)
132using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
134return Response.FromValue(value, message.Response);
137throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
155switch (message.Response.Status)
160using var document = JsonDocument.Parse(message.Response.ContentStream);
162return Response.FromValue(value, message.Response);
165throw _clientDiagnostics.CreateRequestFailedException(message.Response);
201switch (message.Response.Status)
206using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
208return Response.FromValue(value, message.Response);
211throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
229switch (message.Response.Status)
234using var document = JsonDocument.Parse(message.Response.ContentStream);
236return Response.FromValue(value, message.Response);
239throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Azure.Security.ConfidentialLedger (106)
Azure.Security.KeyVault.Administration (120)
Generated\BackupRestoreRestClient.cs (40)
72var headers = new AzureSecurityKeyVaultAdministrationFullBackupHeaders(message.Response);
73switch (message.Response.Status)
76return ResponseWithHeaders.FromValue(headers, message.Response);
78throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
96var headers = new AzureSecurityKeyVaultAdministrationFullBackupHeaders(message.Response);
97switch (message.Response.Status)
100return ResponseWithHeaders.FromValue(headers, message.Response);
102throw _clientDiagnostics.CreateRequestFailedException(message.Response);
140switch (message.Response.Status)
145using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
147return Response.FromValue(value, message.Response);
150throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
172switch (message.Response.Status)
177using var document = JsonDocument.Parse(message.Response.ContentStream);
179return Response.FromValue(value, message.Response);
182throw _clientDiagnostics.CreateRequestFailedException(message.Response);
221var headers = new AzureSecurityKeyVaultAdministrationFullRestoreOperationHeaders(message.Response);
222switch (message.Response.Status)
225return ResponseWithHeaders.FromValue(headers, message.Response);
227throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
245var headers = new AzureSecurityKeyVaultAdministrationFullRestoreOperationHeaders(message.Response);
246switch (message.Response.Status)
249return ResponseWithHeaders.FromValue(headers, message.Response);
251throw _clientDiagnostics.CreateRequestFailedException(message.Response);
289switch (message.Response.Status)
294using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
296return Response.FromValue(value, message.Response);
299throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
321switch (message.Response.Status)
326using var document = JsonDocument.Parse(message.Response.ContentStream);
328return Response.FromValue(value, message.Response);
331throw _clientDiagnostics.CreateRequestFailedException(message.Response);
377var headers = new AzureSecurityKeyVaultAdministrationSelectiveKeyRestoreOperationHeaders(message.Response);
378switch (message.Response.Status)
381return ResponseWithHeaders.FromValue(headers, message.Response);
383throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
406var headers = new AzureSecurityKeyVaultAdministrationSelectiveKeyRestoreOperationHeaders(message.Response);
407switch (message.Response.Status)
410return ResponseWithHeaders.FromValue(headers, message.Response);
412throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RoleAssignmentsRestClient.cs (38)
77switch (message.Response.Status)
81return message.Response;
83throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
110switch (message.Response.Status)
114return message.Response;
116throw _clientDiagnostics.CreateRequestFailedException(message.Response);
169switch (message.Response.Status)
174using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
176return Response.FromValue(value, message.Response);
179throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
211switch (message.Response.Status)
216using var document = JsonDocument.Parse(message.Response.ContentStream);
218return Response.FromValue(value, message.Response);
221throw _clientDiagnostics.CreateRequestFailedException(message.Response);
265switch (message.Response.Status)
270using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
272return Response.FromValue(value, message.Response);
275throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
302switch (message.Response.Status)
307using var document = JsonDocument.Parse(message.Response.ContentStream);
309return Response.FromValue(value, message.Response);
312throw _clientDiagnostics.CreateRequestFailedException(message.Response);
355switch (message.Response.Status)
360using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
362return Response.FromValue(value, message.Response);
365throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
388switch (message.Response.Status)
393using var document = JsonDocument.Parse(message.Response.ContentStream);
395return Response.FromValue(value, message.Response);
398throw _clientDiagnostics.CreateRequestFailedException(message.Response);
439switch (message.Response.Status)
444using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
446return Response.FromValue(value, message.Response);
449throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
477switch (message.Response.Status)
482using var document = JsonDocument.Parse(message.Response.ContentStream);
484return Response.FromValue(value, message.Response);
487throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\RoleDefinitionsRestClient.cs (38)
77switch (message.Response.Status)
81return message.Response;
83throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
110switch (message.Response.Status)
114return message.Response;
116throw _clientDiagnostics.CreateRequestFailedException(message.Response);
169switch (message.Response.Status)
174using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
176return Response.FromValue(value, message.Response);
179throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
211switch (message.Response.Status)
216using var document = JsonDocument.Parse(message.Response.ContentStream);
218return Response.FromValue(value, message.Response);
221throw _clientDiagnostics.CreateRequestFailedException(message.Response);
265switch (message.Response.Status)
270using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
272return Response.FromValue(value, message.Response);
275throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
302switch (message.Response.Status)
307using var document = JsonDocument.Parse(message.Response.ContentStream);
309return Response.FromValue(value, message.Response);
312throw _clientDiagnostics.CreateRequestFailedException(message.Response);
355switch (message.Response.Status)
360using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
362return Response.FromValue(value, message.Response);
365throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
388switch (message.Response.Status)
393using var document = JsonDocument.Parse(message.Response.ContentStream);
395return Response.FromValue(value, message.Response);
398throw _clientDiagnostics.CreateRequestFailedException(message.Response);
439switch (message.Response.Status)
444using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
446return Response.FromValue(value, message.Response);
449throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
477switch (message.Response.Status)
482using var document = JsonDocument.Parse(message.Response.ContentStream);
484return Response.FromValue(value, message.Response);
487throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Azure.Security.KeyVault.Certificates (2)
Azure.Security.KeyVault.Keys (2)
Azure.Security.KeyVault.Secrets (2)
Azure.Storage.Blobs (594)
Generated\BlobRestClient.cs (188)
136var headers = new BlobDownloadHeaders(message.Response);
137switch (message.Response.Status)
143return ResponseWithHeaders.FromValue(value, headers, message.Response);
146return ResponseWithHeaders.FromValue((Stream)null, headers, message.Response);
148throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
173var headers = new BlobDownloadHeaders(message.Response);
174switch (message.Response.Status)
180return ResponseWithHeaders.FromValue(value, headers, message.Response);
183return ResponseWithHeaders.FromValue((Stream)null, headers, message.Response);
185throw _clientDiagnostics.CreateRequestFailedException(message.Response);
268var headers = new BlobGetPropertiesHeaders(message.Response);
269switch (message.Response.Status)
272return ResponseWithHeaders.FromValue(headers, message.Response);
274throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
296var headers = new BlobGetPropertiesHeaders(message.Response);
297switch (message.Response.Status)
300return ResponseWithHeaders.FromValue(headers, message.Response);
302throw _clientDiagnostics.CreateRequestFailedException(message.Response);
380var headers = new BlobDeleteHeaders(message.Response);
381switch (message.Response.Status)
384return ResponseWithHeaders.FromValue(headers, message.Response);
386throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
407var headers = new BlobDeleteHeaders(message.Response);
408switch (message.Response.Status)
411return ResponseWithHeaders.FromValue(headers, message.Response);
413throw _clientDiagnostics.CreateRequestFailedException(message.Response);
442var headers = new BlobUndeleteHeaders(message.Response);
443switch (message.Response.Status)
446return ResponseWithHeaders.FromValue(headers, message.Response);
448throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
459var headers = new BlobUndeleteHeaders(message.Response);
460switch (message.Response.Status)
463return ResponseWithHeaders.FromValue(headers, message.Response);
465throw _clientDiagnostics.CreateRequestFailedException(message.Response);
501var headers = new BlobSetExpiryHeaders(message.Response);
502switch (message.Response.Status)
505return ResponseWithHeaders.FromValue(headers, message.Response);
507throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
520var headers = new BlobSetExpiryHeaders(message.Response);
521switch (message.Response.Status)
524return ResponseWithHeaders.FromValue(headers, message.Response);
526throw _clientDiagnostics.CreateRequestFailedException(message.Response);
615var headers = new BlobSetHttpHeadersHeaders(message.Response);
616switch (message.Response.Status)
619return ResponseWithHeaders.FromValue(headers, message.Response);
621throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
644var headers = new BlobSetHttpHeadersHeaders(message.Response);
645switch (message.Response.Status)
648return ResponseWithHeaders.FromValue(headers, message.Response);
650throw _clientDiagnostics.CreateRequestFailedException(message.Response);
694var headers = new BlobSetImmutabilityPolicyHeaders(message.Response);
695switch (message.Response.Status)
698return ResponseWithHeaders.FromValue(headers, message.Response);
700throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
714var headers = new BlobSetImmutabilityPolicyHeaders(message.Response);
715switch (message.Response.Status)
718return ResponseWithHeaders.FromValue(headers, message.Response);
720throw _clientDiagnostics.CreateRequestFailedException(message.Response);
749var headers = new BlobDeleteImmutabilityPolicyHeaders(message.Response);
750switch (message.Response.Status)
753return ResponseWithHeaders.FromValue(headers, message.Response);
755throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
766var headers = new BlobDeleteImmutabilityPolicyHeaders(message.Response);
767switch (message.Response.Status)
770return ResponseWithHeaders.FromValue(headers, message.Response);
772throw _clientDiagnostics.CreateRequestFailedException(message.Response);
803var headers = new BlobSetLegalHoldHeaders(message.Response);
804switch (message.Response.Status)
807return ResponseWithHeaders.FromValue(headers, message.Response);
809throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
821var headers = new BlobSetLegalHoldHeaders(message.Response);
822switch (message.Response.Status)
825return ResponseWithHeaders.FromValue(headers, message.Response);
827throw _clientDiagnostics.CreateRequestFailedException(message.Response);
911var headers = new BlobSetMetadataHeaders(message.Response);
912switch (message.Response.Status)
915return ResponseWithHeaders.FromValue(headers, message.Response);
917throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
939var headers = new BlobSetMetadataHeaders(message.Response);
940switch (message.Response.Status)
943return ResponseWithHeaders.FromValue(headers, message.Response);
945throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1010var headers = new BlobAcquireLeaseHeaders(message.Response);
1011switch (message.Response.Status)
1014return ResponseWithHeaders.FromValue(headers, message.Response);
1016throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1034var headers = new BlobAcquireLeaseHeaders(message.Response);
1035switch (message.Response.Status)
1038return ResponseWithHeaders.FromValue(headers, message.Response);
1040throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1103var headers = new BlobReleaseLeaseHeaders(message.Response);
1104switch (message.Response.Status)
1107return ResponseWithHeaders.FromValue(headers, message.Response);
1109throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1132var headers = new BlobReleaseLeaseHeaders(message.Response);
1133switch (message.Response.Status)
1136return ResponseWithHeaders.FromValue(headers, message.Response);
1138throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1201var headers = new BlobRenewLeaseHeaders(message.Response);
1202switch (message.Response.Status)
1205return ResponseWithHeaders.FromValue(headers, message.Response);
1207throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1230var headers = new BlobRenewLeaseHeaders(message.Response);
1231switch (message.Response.Status)
1234return ResponseWithHeaders.FromValue(headers, message.Response);
1236throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1305var headers = new BlobChangeLeaseHeaders(message.Response);
1306switch (message.Response.Status)
1309return ResponseWithHeaders.FromValue(headers, message.Response);
1311throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1339var headers = new BlobChangeLeaseHeaders(message.Response);
1340switch (message.Response.Status)
1343return ResponseWithHeaders.FromValue(headers, message.Response);
1345throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1405var headers = new BlobBreakLeaseHeaders(message.Response);
1406switch (message.Response.Status)
1409return ResponseWithHeaders.FromValue(headers, message.Response);
1411throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1428var headers = new BlobBreakLeaseHeaders(message.Response);
1429switch (message.Response.Status)
1432return ResponseWithHeaders.FromValue(headers, message.Response);
1434throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1518var headers = new BlobCreateSnapshotHeaders(message.Response);
1519switch (message.Response.Status)
1522return ResponseWithHeaders.FromValue(headers, message.Response);
1524throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1546var headers = new BlobCreateSnapshotHeaders(message.Response);
1547switch (message.Response.Status)
1550return ResponseWithHeaders.FromValue(headers, message.Response);
1552throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1683var headers = new BlobStartCopyFromURLHeaders(message.Response);
1684switch (message.Response.Status)
1687return ResponseWithHeaders.FromValue(headers, message.Response);
1689throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1726var headers = new BlobStartCopyFromURLHeaders(message.Response);
1727switch (message.Response.Status)
1730return ResponseWithHeaders.FromValue(headers, message.Response);
1732throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1864var headers = new BlobCopyFromURLHeaders(message.Response);
1865switch (message.Response.Status)
1868return ResponseWithHeaders.FromValue(headers, message.Response);
1870throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1907var headers = new BlobCopyFromURLHeaders(message.Response);
1908switch (message.Response.Status)
1911return ResponseWithHeaders.FromValue(headers, message.Response);
1913throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1956var headers = new BlobAbortCopyFromURLHeaders(message.Response);
1957switch (message.Response.Status)
1960return ResponseWithHeaders.FromValue(headers, message.Response);
1962throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1981var headers = new BlobAbortCopyFromURLHeaders(message.Response);
1982switch (message.Response.Status)
1985return ResponseWithHeaders.FromValue(headers, message.Response);
1987throw _clientDiagnostics.CreateRequestFailedException(message.Response);
2043var headers = new BlobSetTierHeaders(message.Response);
2044switch (message.Response.Status)
2048return ResponseWithHeaders.FromValue(headers, message.Response);
2050throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
2067var headers = new BlobSetTierHeaders(message.Response);
2068switch (message.Response.Status)
2072return ResponseWithHeaders.FromValue(headers, message.Response);
2074throw _clientDiagnostics.CreateRequestFailedException(message.Response);
2162var headers = new BlobQueryHeaders(message.Response);
2163switch (message.Response.Status)
2169return ResponseWithHeaders.FromValue(value, headers, message.Response);
2172throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
2194var headers = new BlobQueryHeaders(message.Response);
2195switch (message.Response.Status)
2201return ResponseWithHeaders.FromValue(value, headers, message.Response);
2204throw _clientDiagnostics.CreateRequestFailedException(message.Response);
2253var headers = new BlobGetTagsHeaders(message.Response);
2254switch (message.Response.Status)
2259var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
2264return ResponseWithHeaders.FromValue(value, headers, message.Response);
2267throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
2282var headers = new BlobGetTagsHeaders(message.Response);
2283switch (message.Response.Status)
2288var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
2293return ResponseWithHeaders.FromValue(value, headers, message.Response);
2296throw _clientDiagnostics.CreateRequestFailedException(message.Response);
2358var headers = new BlobSetTagsHeaders(message.Response);
2359switch (message.Response.Status)
2362return ResponseWithHeaders.FromValue(headers, message.Response);
2364throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
2381var headers = new BlobSetTagsHeaders(message.Response);
2382switch (message.Response.Status)
2385return ResponseWithHeaders.FromValue(headers, message.Response);
2387throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\BlockBlobRestClient.cs (50)
192var headers = new BlockBlobUploadHeaders(message.Response);
193switch (message.Response.Status)
196return ResponseWithHeaders.FromValue(headers, message.Response);
198throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
240var headers = new BlockBlobUploadHeaders(message.Response);
241switch (message.Response.Status)
244return ResponseWithHeaders.FromValue(headers, message.Response);
246throw _clientDiagnostics.CreateRequestFailedException(message.Response);
420var headers = new BlockBlobPutBlobFromUrlHeaders(message.Response);
421switch (message.Response.Status)
424return ResponseWithHeaders.FromValue(headers, message.Response);
426throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
473var headers = new BlockBlobPutBlobFromUrlHeaders(message.Response);
474switch (message.Response.Status)
477return ResponseWithHeaders.FromValue(headers, message.Response);
479throw _clientDiagnostics.CreateRequestFailedException(message.Response);
560var headers = new BlockBlobStageBlockHeaders(message.Response);
561switch (message.Response.Status)
564return ResponseWithHeaders.FromValue(headers, message.Response);
566throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
597var headers = new BlockBlobStageBlockHeaders(message.Response);
598switch (message.Response.Status)
601return ResponseWithHeaders.FromValue(headers, message.Response);
603throw _clientDiagnostics.CreateRequestFailedException(message.Response);
712var headers = new BlockBlobStageBlockFromURLHeaders(message.Response);
713switch (message.Response.Status)
716return ResponseWithHeaders.FromValue(headers, message.Response);
718throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
755var headers = new BlockBlobStageBlockFromURLHeaders(message.Response);
756switch (message.Response.Status)
759return ResponseWithHeaders.FromValue(headers, message.Response);
761throw _clientDiagnostics.CreateRequestFailedException(message.Response);
921var headers = new BlockBlobCommitBlockListHeaders(message.Response);
922switch (message.Response.Status)
925return ResponseWithHeaders.FromValue(headers, message.Response);
927throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
969var headers = new BlockBlobCommitBlockListHeaders(message.Response);
970switch (message.Response.Status)
973return ResponseWithHeaders.FromValue(headers, message.Response);
975throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1021var headers = new BlockBlobGetBlockListHeaders(message.Response);
1022switch (message.Response.Status)
1027var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
1032return ResponseWithHeaders.FromValue(value, headers, message.Response);
1035throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1050var headers = new BlockBlobGetBlockListHeaders(message.Response);
1051switch (message.Response.Status)
1056var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
1061return ResponseWithHeaders.FromValue(value, headers, message.Response);
1064throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ContainerRestClient.cs (154)
86var headers = new ContainerCreateHeaders(message.Response);
87switch (message.Response.Status)
90return ResponseWithHeaders.FromValue(headers, message.Response);
92throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
107var headers = new ContainerCreateHeaders(message.Response);
108switch (message.Response.Status)
111return ResponseWithHeaders.FromValue(headers, message.Response);
113throw _clientDiagnostics.CreateRequestFailedException(message.Response);
147var headers = new ContainerGetPropertiesHeaders(message.Response);
148switch (message.Response.Status)
151return ResponseWithHeaders.FromValue(headers, message.Response);
153throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
165var headers = new ContainerGetPropertiesHeaders(message.Response);
166switch (message.Response.Status)
169return ResponseWithHeaders.FromValue(headers, message.Response);
171throw _clientDiagnostics.CreateRequestFailedException(message.Response);
215var headers = new ContainerDeleteHeaders(message.Response);
216switch (message.Response.Status)
219return ResponseWithHeaders.FromValue(headers, message.Response);
221throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
235var headers = new ContainerDeleteHeaders(message.Response);
236switch (message.Response.Status)
239return ResponseWithHeaders.FromValue(headers, message.Response);
241throw _clientDiagnostics.CreateRequestFailedException(message.Response);
286var headers = new ContainerSetMetadataHeaders(message.Response);
287switch (message.Response.Status)
290return ResponseWithHeaders.FromValue(headers, message.Response);
292throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
306var headers = new ContainerSetMetadataHeaders(message.Response);
307switch (message.Response.Status)
310return ResponseWithHeaders.FromValue(headers, message.Response);
312throw _clientDiagnostics.CreateRequestFailedException(message.Response);
347var headers = new ContainerGetAccessPolicyHeaders(message.Response);
348switch (message.Response.Status)
353var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
363return ResponseWithHeaders.FromValue(value, headers, message.Response);
366throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
378var headers = new ContainerGetAccessPolicyHeaders(message.Response);
379switch (message.Response.Status)
384var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
394return ResponseWithHeaders.FromValue(value, headers, message.Response);
397throw _clientDiagnostics.CreateRequestFailedException(message.Response);
460var headers = new ContainerSetAccessPolicyHeaders(message.Response);
461switch (message.Response.Status)
464return ResponseWithHeaders.FromValue(headers, message.Response);
466throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
482var headers = new ContainerSetAccessPolicyHeaders(message.Response);
483switch (message.Response.Status)
486return ResponseWithHeaders.FromValue(headers, message.Response);
488throw _clientDiagnostics.CreateRequestFailedException(message.Response);
528var headers = new ContainerRestoreHeaders(message.Response);
529switch (message.Response.Status)
532return ResponseWithHeaders.FromValue(headers, message.Response);
534throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
547var headers = new ContainerRestoreHeaders(message.Response);
548switch (message.Response.Status)
551return ResponseWithHeaders.FromValue(headers, message.Response);
553throw _clientDiagnostics.CreateRequestFailedException(message.Response);
596var headers = new ContainerRenameHeaders(message.Response);
597switch (message.Response.Status)
600return ResponseWithHeaders.FromValue(headers, message.Response);
602throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
621var headers = new ContainerRenameHeaders(message.Response);
622switch (message.Response.Status)
625return ResponseWithHeaders.FromValue(headers, message.Response);
627throw _clientDiagnostics.CreateRequestFailedException(message.Response);
673var headers = new ContainerSubmitBatchHeaders(message.Response);
674switch (message.Response.Status)
679return ResponseWithHeaders.FromValue(value, headers, message.Response);
682throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
706var headers = new ContainerSubmitBatchHeaders(message.Response);
707switch (message.Response.Status)
712return ResponseWithHeaders.FromValue(value, headers, message.Response);
715throw _clientDiagnostics.CreateRequestFailedException(message.Response);
766var headers = new ContainerAcquireLeaseHeaders(message.Response);
767switch (message.Response.Status)
770return ResponseWithHeaders.FromValue(headers, message.Response);
772throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
787var headers = new ContainerAcquireLeaseHeaders(message.Response);
788switch (message.Response.Status)
791return ResponseWithHeaders.FromValue(headers, message.Response);
793throw _clientDiagnostics.CreateRequestFailedException(message.Response);
842var headers = new ContainerReleaseLeaseHeaders(message.Response);
843switch (message.Response.Status)
846return ResponseWithHeaders.FromValue(headers, message.Response);
848throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
868var headers = new ContainerReleaseLeaseHeaders(message.Response);
869switch (message.Response.Status)
872return ResponseWithHeaders.FromValue(headers, message.Response);
874throw _clientDiagnostics.CreateRequestFailedException(message.Response);
923var headers = new ContainerRenewLeaseHeaders(message.Response);
924switch (message.Response.Status)
927return ResponseWithHeaders.FromValue(headers, message.Response);
929throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
949var headers = new ContainerRenewLeaseHeaders(message.Response);
950switch (message.Response.Status)
953return ResponseWithHeaders.FromValue(headers, message.Response);
955throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1001var headers = new ContainerBreakLeaseHeaders(message.Response);
1002switch (message.Response.Status)
1005return ResponseWithHeaders.FromValue(headers, message.Response);
1007throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1021var headers = new ContainerBreakLeaseHeaders(message.Response);
1022switch (message.Response.Status)
1025return ResponseWithHeaders.FromValue(headers, message.Response);
1027throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1082var headers = new ContainerChangeLeaseHeaders(message.Response);
1083switch (message.Response.Status)
1086return ResponseWithHeaders.FromValue(headers, message.Response);
1088throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1113var headers = new ContainerChangeLeaseHeaders(message.Response);
1114switch (message.Response.Status)
1117return ResponseWithHeaders.FromValue(headers, message.Response);
1119throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1169var headers = new ContainerListBlobFlatSegmentHeaders(message.Response);
1170switch (message.Response.Status)
1175var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
1180return ResponseWithHeaders.FromValue(value, headers, message.Response);
1183throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1198var headers = new ContainerListBlobFlatSegmentHeaders(message.Response);
1199switch (message.Response.Status)
1204var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
1209return ResponseWithHeaders.FromValue(value, headers, message.Response);
1212throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1267var headers = new ContainerListBlobHierarchySegmentHeaders(message.Response);
1268switch (message.Response.Status)
1273var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
1278return ResponseWithHeaders.FromValue(value, headers, message.Response);
1281throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1297var headers = new ContainerListBlobHierarchySegmentHeaders(message.Response);
1298switch (message.Response.Status)
1303var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
1308return ResponseWithHeaders.FromValue(value, headers, message.Response);
1311throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1347var headers = new ContainerListBlobFlatSegmentHeaders(message.Response);
1348switch (message.Response.Status)
1353var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
1358return ResponseWithHeaders.FromValue(value, headers, message.Response);
1361throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1383var headers = new ContainerListBlobFlatSegmentHeaders(message.Response);
1384switch (message.Response.Status)
1389var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
1394return ResponseWithHeaders.FromValue(value, headers, message.Response);
1397throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1434var headers = new ContainerListBlobHierarchySegmentHeaders(message.Response);
1435switch (message.Response.Status)
1440var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
1445return ResponseWithHeaders.FromValue(value, headers, message.Response);
1448throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1471var headers = new ContainerListBlobHierarchySegmentHeaders(message.Response);
1472switch (message.Response.Status)
1477var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
1482return ResponseWithHeaders.FromValue(value, headers, message.Response);
1485throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\PageBlobRestClient.cs (76)
184var headers = new PageBlobCreateHeaders(message.Response);
185switch (message.Response.Status)
188return ResponseWithHeaders.FromValue(headers, message.Response);
190throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
226var headers = new PageBlobCreateHeaders(message.Response);
227switch (message.Response.Status)
230return ResponseWithHeaders.FromValue(headers, message.Response);
232throw _clientDiagnostics.CreateRequestFailedException(message.Response);
353var headers = new PageBlobUploadPagesHeaders(message.Response);
354switch (message.Response.Status)
357return ResponseWithHeaders.FromValue(headers, message.Response);
359throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
394var headers = new PageBlobUploadPagesHeaders(message.Response);
395switch (message.Response.Status)
398return ResponseWithHeaders.FromValue(headers, message.Response);
400throw _clientDiagnostics.CreateRequestFailedException(message.Response);
501var headers = new PageBlobClearPagesHeaders(message.Response);
502switch (message.Response.Status)
505return ResponseWithHeaders.FromValue(headers, message.Response);
507throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
533var headers = new PageBlobClearPagesHeaders(message.Response);
534switch (message.Response.Status)
537return ResponseWithHeaders.FromValue(headers, message.Response);
539throw _clientDiagnostics.CreateRequestFailedException(message.Response);
690var headers = new PageBlobUploadPagesFromURLHeaders(message.Response);
691switch (message.Response.Status)
694return ResponseWithHeaders.FromValue(headers, message.Response);
696throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
745var headers = new PageBlobUploadPagesFromURLHeaders(message.Response);
746switch (message.Response.Status)
749return ResponseWithHeaders.FromValue(headers, message.Response);
751throw _clientDiagnostics.CreateRequestFailedException(message.Response);
820var headers = new PageBlobGetPageRangesHeaders(message.Response);
821switch (message.Response.Status)
826var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
831return ResponseWithHeaders.FromValue(value, headers, message.Response);
834throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
853var headers = new PageBlobGetPageRangesHeaders(message.Response);
854switch (message.Response.Status)
859var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
864return ResponseWithHeaders.FromValue(value, headers, message.Response);
867throw _clientDiagnostics.CreateRequestFailedException(message.Response);
946var headers = new PageBlobGetPageRangesDiffHeaders(message.Response);
947switch (message.Response.Status)
952var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
957return ResponseWithHeaders.FromValue(value, headers, message.Response);
960throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
981var headers = new PageBlobGetPageRangesDiffHeaders(message.Response);
982switch (message.Response.Status)
987var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
992return ResponseWithHeaders.FromValue(value, headers, message.Response);
995throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1076var headers = new PageBlobResizeHeaders(message.Response);
1077switch (message.Response.Status)
1080return ResponseWithHeaders.FromValue(headers, message.Response);
1082throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1104var headers = new PageBlobResizeHeaders(message.Response);
1105switch (message.Response.Status)
1108return ResponseWithHeaders.FromValue(headers, message.Response);
1110throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1176var headers = new PageBlobUpdateSequenceNumberHeaders(message.Response);
1177switch (message.Response.Status)
1180return ResponseWithHeaders.FromValue(headers, message.Response);
1182throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1201var headers = new PageBlobUpdateSequenceNumberHeaders(message.Response);
1202switch (message.Response.Status)
1205return ResponseWithHeaders.FromValue(headers, message.Response);
1207throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1269var headers = new PageBlobCopyIncrementalHeaders(message.Response);
1270switch (message.Response.Status)
1273return ResponseWithHeaders.FromValue(headers, message.Response);
1275throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1298var headers = new PageBlobCopyIncrementalHeaders(message.Response);
1299switch (message.Response.Status)
1302return ResponseWithHeaders.FromValue(headers, message.Response);
1304throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ServiceRestClient.cs (84)
79var headers = new ServiceSetPropertiesHeaders(message.Response);
80switch (message.Response.Status)
83return ResponseWithHeaders.FromValue(headers, message.Response);
85throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
103var headers = new ServiceSetPropertiesHeaders(message.Response);
104switch (message.Response.Status)
107return ResponseWithHeaders.FromValue(headers, message.Response);
109throw _clientDiagnostics.CreateRequestFailedException(message.Response);
140var headers = new ServiceGetPropertiesHeaders(message.Response);
141switch (message.Response.Status)
146var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
151return ResponseWithHeaders.FromValue(value, headers, message.Response);
154throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
165var headers = new ServiceGetPropertiesHeaders(message.Response);
166switch (message.Response.Status)
171var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
176return ResponseWithHeaders.FromValue(value, headers, message.Response);
179throw _clientDiagnostics.CreateRequestFailedException(message.Response);
210var headers = new ServiceGetStatisticsHeaders(message.Response);
211switch (message.Response.Status)
216var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
221return ResponseWithHeaders.FromValue(value, headers, message.Response);
224throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
235var headers = new ServiceGetStatisticsHeaders(message.Response);
236switch (message.Response.Status)
241var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
246return ResponseWithHeaders.FromValue(value, headers, message.Response);
249throw _clientDiagnostics.CreateRequestFailedException(message.Response);
299var headers = new ServiceListContainersSegmentHeaders(message.Response);
300switch (message.Response.Status)
305var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
310return ResponseWithHeaders.FromValue(value, headers, message.Response);
313throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
328var headers = new ServiceListContainersSegmentHeaders(message.Response);
329switch (message.Response.Status)
334var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
339return ResponseWithHeaders.FromValue(value, headers, message.Response);
342throw _clientDiagnostics.CreateRequestFailedException(message.Response);
384var headers = new ServiceGetUserDelegationKeyHeaders(message.Response);
385switch (message.Response.Status)
390var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
395return ResponseWithHeaders.FromValue(value, headers, message.Response);
398throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
416var headers = new ServiceGetUserDelegationKeyHeaders(message.Response);
417switch (message.Response.Status)
422var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
427return ResponseWithHeaders.FromValue(value, headers, message.Response);
430throw _clientDiagnostics.CreateRequestFailedException(message.Response);
456var headers = new ServiceGetAccountInfoHeaders(message.Response);
457switch (message.Response.Status)
460return ResponseWithHeaders.FromValue(headers, message.Response);
462throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
472var headers = new ServiceGetAccountInfoHeaders(message.Response);
473switch (message.Response.Status)
476return ResponseWithHeaders.FromValue(headers, message.Response);
478throw _clientDiagnostics.CreateRequestFailedException(message.Response);
524var headers = new ServiceSubmitBatchHeaders(message.Response);
525switch (message.Response.Status)
530return ResponseWithHeaders.FromValue(value, headers, message.Response);
533throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
557var headers = new ServiceSubmitBatchHeaders(message.Response);
558switch (message.Response.Status)
563return ResponseWithHeaders.FromValue(value, headers, message.Response);
566throw _clientDiagnostics.CreateRequestFailedException(message.Response);
611var headers = new ServiceFilterBlobsHeaders(message.Response);
612switch (message.Response.Status)
617var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
622return ResponseWithHeaders.FromValue(value, headers, message.Response);
625throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
639var headers = new ServiceFilterBlobsHeaders(message.Response);
640switch (message.Response.Status)
645var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
650return ResponseWithHeaders.FromValue(value, headers, message.Response);
653throw _clientDiagnostics.CreateRequestFailedException(message.Response);
689var headers = new ServiceListContainersSegmentHeaders(message.Response);
690switch (message.Response.Status)
695var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
700return ResponseWithHeaders.FromValue(value, headers, message.Response);
703throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
725var headers = new ServiceListContainersSegmentHeaders(message.Response);
726switch (message.Response.Status)
731var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
736return ResponseWithHeaders.FromValue(value, headers, message.Response);
739throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Azure.Storage.Blobs.Batch (34)
Azure.Storage.Blobs.Batch.Samples.Tests (7)
Azure.Storage.Blobs.Batch.Tests (7)
Azure.Storage.Blobs.ChangeFeed.Samples.Tests (7)
Azure.Storage.Blobs.ChangeFeed.Tests (7)
Azure.Storage.Blobs.Perf (2)
Azure.Storage.Blobs.Samples.Tests (7)
Azure.Storage.Blobs.Tests (7)
Azure.Storage.Common (6)
Azure.Storage.Common.Samples.Tests (7)
Azure.Storage.Common.Tests (7)
Azure.Storage.Files.DataLake (184)
Generated\FileSystemRestClient.cs (62)
74var headers = new FileSystemCreateHeaders(message.Response);
75switch (message.Response.Status)
78return ResponseWithHeaders.FromValue(headers, message.Response);
80throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
92var headers = new FileSystemCreateHeaders(message.Response);
93switch (message.Response.Status)
96return ResponseWithHeaders.FromValue(headers, message.Response);
98throw _clientDiagnostics.CreateRequestFailedException(message.Response);
142var headers = new FileSystemSetPropertiesHeaders(message.Response);
143switch (message.Response.Status)
146return ResponseWithHeaders.FromValue(headers, message.Response);
148throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
162var headers = new FileSystemSetPropertiesHeaders(message.Response);
163switch (message.Response.Status)
166return ResponseWithHeaders.FromValue(headers, message.Response);
168throw _clientDiagnostics.CreateRequestFailedException(message.Response);
197var headers = new FileSystemGetPropertiesHeaders(message.Response);
198switch (message.Response.Status)
201return ResponseWithHeaders.FromValue(headers, message.Response);
203throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
214var headers = new FileSystemGetPropertiesHeaders(message.Response);
215switch (message.Response.Status)
218return ResponseWithHeaders.FromValue(headers, message.Response);
220throw _clientDiagnostics.CreateRequestFailedException(message.Response);
259var headers = new FileSystemDeleteHeaders(message.Response);
260switch (message.Response.Status)
263return ResponseWithHeaders.FromValue(headers, message.Response);
265throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
278var headers = new FileSystemDeleteHeaders(message.Response);
279switch (message.Response.Status)
282return ResponseWithHeaders.FromValue(headers, message.Response);
284throw _clientDiagnostics.CreateRequestFailedException(message.Response);
335var headers = new FileSystemListPathsHeaders(message.Response);
336switch (message.Response.Status)
341using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
343return ResponseWithHeaders.FromValue(value, headers, message.Response);
346throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
362var headers = new FileSystemListPathsHeaders(message.Response);
363switch (message.Response.Status)
368using var document = JsonDocument.Parse(message.Response.ContentStream);
370return ResponseWithHeaders.FromValue(value, headers, message.Response);
373throw _clientDiagnostics.CreateRequestFailedException(message.Response);
429var headers = new FileSystemListBlobHierarchySegmentHeaders(message.Response);
430switch (message.Response.Status)
435var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
440return ResponseWithHeaders.FromValue(value, headers, message.Response);
443throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
459var headers = new FileSystemListBlobHierarchySegmentHeaders(message.Response);
460switch (message.Response.Status)
465var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
470return ResponseWithHeaders.FromValue(value, headers, message.Response);
473throw _clientDiagnostics.CreateRequestFailedException(message.Response);
510var headers = new FileSystemListBlobHierarchySegmentHeaders(message.Response);
511switch (message.Response.Status)
516var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
521return ResponseWithHeaders.FromValue(value, headers, message.Response);
524throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
547var headers = new FileSystemListBlobHierarchySegmentHeaders(message.Response);
548switch (message.Response.Status)
553var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
558return ResponseWithHeaders.FromValue(value, headers, message.Response);
561throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\PathRestClient.cs (102)
174var headers = new PathCreateHeaders(message.Response);
175switch (message.Response.Status)
178return ResponseWithHeaders.FromValue(headers, message.Response);
180throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
213var headers = new PathCreateHeaders(message.Response);
214switch (message.Response.Status)
217return ResponseWithHeaders.FromValue(headers, message.Response);
219throw _clientDiagnostics.CreateRequestFailedException(message.Response);
375var headers = new PathUpdateHeaders(message.Response);
376switch (message.Response.Status)
381using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
383return ResponseWithHeaders.FromValue(value, headers, message.Response);
386return ResponseWithHeaders.FromValue((SetAccessControlRecursiveResponse)null, headers, message.Response);
388throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
431var headers = new PathUpdateHeaders(message.Response);
432switch (message.Response.Status)
437using var document = JsonDocument.Parse(message.Response.ContentStream);
439return ResponseWithHeaders.FromValue(value, headers, message.Response);
442return ResponseWithHeaders.FromValue((SetAccessControlRecursiveResponse)null, headers, message.Response);
444throw _clientDiagnostics.CreateRequestFailedException(message.Response);
514var headers = new PathLeaseHeaders(message.Response);
515switch (message.Response.Status)
520return ResponseWithHeaders.FromValue(headers, message.Response);
522throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
542var headers = new PathLeaseHeaders(message.Response);
543switch (message.Response.Status)
548return ResponseWithHeaders.FromValue(headers, message.Response);
550throw _clientDiagnostics.CreateRequestFailedException(message.Response);
614var headers = new PathReadHeaders(message.Response);
615switch (message.Response.Status)
621return ResponseWithHeaders.FromValue(value, headers, message.Response);
624throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
642var headers = new PathReadHeaders(message.Response);
643switch (message.Response.Status)
649return ResponseWithHeaders.FromValue(value, headers, message.Response);
652throw _clientDiagnostics.CreateRequestFailedException(message.Response);
715var headers = new PathGetPropertiesHeaders(message.Response);
716switch (message.Response.Status)
719return ResponseWithHeaders.FromValue(headers, message.Response);
721throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
739var headers = new PathGetPropertiesHeaders(message.Response);
740switch (message.Response.Status)
743return ResponseWithHeaders.FromValue(headers, message.Response);
745throw _clientDiagnostics.CreateRequestFailedException(message.Response);
808var headers = new PathDeleteHeaders(message.Response);
809switch (message.Response.Status)
812return ResponseWithHeaders.FromValue(headers, message.Response);
814throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
832var headers = new PathDeleteHeaders(message.Response);
833switch (message.Response.Status)
836return ResponseWithHeaders.FromValue(headers, message.Response);
838throw _clientDiagnostics.CreateRequestFailedException(message.Response);
912var headers = new PathSetAccessControlHeaders(message.Response);
913switch (message.Response.Status)
916return ResponseWithHeaders.FromValue(headers, message.Response);
918throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
938var headers = new PathSetAccessControlHeaders(message.Response);
939switch (message.Response.Status)
942return ResponseWithHeaders.FromValue(headers, message.Response);
944throw _clientDiagnostics.CreateRequestFailedException(message.Response);
995var headers = new PathSetAccessControlRecursiveHeaders(message.Response);
996switch (message.Response.Status)
1001using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
1003return ResponseWithHeaders.FromValue(value, headers, message.Response);
1006throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1022var headers = new PathSetAccessControlRecursiveHeaders(message.Response);
1023switch (message.Response.Status)
1028using var document = JsonDocument.Parse(message.Response.ContentStream);
1030return ResponseWithHeaders.FromValue(value, headers, message.Response);
1033throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1133var headers = new PathFlushDataHeaders(message.Response);
1134switch (message.Response.Status)
1137return ResponseWithHeaders.FromValue(headers, message.Response);
1139throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1165var headers = new PathFlushDataHeaders(message.Response);
1166switch (message.Response.Status)
1169return ResponseWithHeaders.FromValue(headers, message.Response);
1171throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1234var headers = new PathAppendDataHeaders(message.Response);
1235switch (message.Response.Status)
1238return ResponseWithHeaders.FromValue(headers, message.Response);
1240throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1263var headers = new PathAppendDataHeaders(message.Response);
1264switch (message.Response.Status)
1267return ResponseWithHeaders.FromValue(headers, message.Response);
1269throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1305var headers = new PathSetExpiryHeaders(message.Response);
1306switch (message.Response.Status)
1309return ResponseWithHeaders.FromValue(headers, message.Response);
1311throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1324var headers = new PathSetExpiryHeaders(message.Response);
1325switch (message.Response.Status)
1328return ResponseWithHeaders.FromValue(headers, message.Response);
1330throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1364var headers = new PathUndeleteHeaders(message.Response);
1365switch (message.Response.Status)
1368return ResponseWithHeaders.FromValue(headers, message.Response);
1370throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1382var headers = new PathUndeleteHeaders(message.Response);
1383switch (message.Response.Status)
1386return ResponseWithHeaders.FromValue(headers, message.Response);
1388throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Azure.Storage.Files.DataLake.Samples.Tests (7)
Azure.Storage.Files.DataLake.Tests (7)
Azure.Storage.Files.Shares (408)
Generated\DirectoryRestClient.cs (78)
100var headers = new DirectoryCreateHeaders(message.Response);
101switch (message.Response.Status)
104return ResponseWithHeaders.FromValue(headers, message.Response);
106throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
137var headers = new DirectoryCreateHeaders(message.Response);
138switch (message.Response.Status)
141return ResponseWithHeaders.FromValue(headers, message.Response);
143throw _clientDiagnostics.CreateRequestFailedException(message.Response);
177var headers = new DirectoryGetPropertiesHeaders(message.Response);
178switch (message.Response.Status)
181return ResponseWithHeaders.FromValue(headers, message.Response);
183throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
195var headers = new DirectoryGetPropertiesHeaders(message.Response);
196switch (message.Response.Status)
199return ResponseWithHeaders.FromValue(headers, message.Response);
201throw _clientDiagnostics.CreateRequestFailedException(message.Response);
230var headers = new DirectoryDeleteHeaders(message.Response);
231switch (message.Response.Status)
234return ResponseWithHeaders.FromValue(headers, message.Response);
236throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
247var headers = new DirectoryDeleteHeaders(message.Response);
248switch (message.Response.Status)
251return ResponseWithHeaders.FromValue(headers, message.Response);
253throw _clientDiagnostics.CreateRequestFailedException(message.Response);
313var headers = new DirectorySetPropertiesHeaders(message.Response);
314switch (message.Response.Status)
317return ResponseWithHeaders.FromValue(headers, message.Response);
319throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
349var headers = new DirectorySetPropertiesHeaders(message.Response);
350switch (message.Response.Status)
353return ResponseWithHeaders.FromValue(headers, message.Response);
355throw _clientDiagnostics.CreateRequestFailedException(message.Response);
390var headers = new DirectorySetMetadataHeaders(message.Response);
391switch (message.Response.Status)
394return ResponseWithHeaders.FromValue(headers, message.Response);
396throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
408var headers = new DirectorySetMetadataHeaders(message.Response);
409switch (message.Response.Status)
412return ResponseWithHeaders.FromValue(headers, message.Response);
414throw _clientDiagnostics.CreateRequestFailedException(message.Response);
474var headers = new DirectoryListFilesAndDirectoriesSegmentHeaders(message.Response);
475switch (message.Response.Status)
480var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
485return ResponseWithHeaders.FromValue(value, headers, message.Response);
488throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
505var headers = new DirectoryListFilesAndDirectoriesSegmentHeaders(message.Response);
506switch (message.Response.Status)
511var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
516return ResponseWithHeaders.FromValue(value, headers, message.Response);
519throw _clientDiagnostics.CreateRequestFailedException(message.Response);
568var headers = new DirectoryListHandlesHeaders(message.Response);
569switch (message.Response.Status)
574var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
579return ResponseWithHeaders.FromValue(value, headers, message.Response);
582throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
597var headers = new DirectoryListHandlesHeaders(message.Response);
598switch (message.Response.Status)
603var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
608return ResponseWithHeaders.FromValue(value, headers, message.Response);
611throw _clientDiagnostics.CreateRequestFailedException(message.Response);
663var headers = new DirectoryForceCloseHandlesHeaders(message.Response);
664switch (message.Response.Status)
667return ResponseWithHeaders.FromValue(headers, message.Response);
669throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
690var headers = new DirectoryForceCloseHandlesHeaders(message.Response);
691switch (message.Response.Status)
694return ResponseWithHeaders.FromValue(headers, message.Response);
696throw _clientDiagnostics.CreateRequestFailedException(message.Response);
738var headers = new DirectoryListFilesAndDirectoriesSegmentHeaders(message.Response);
739switch (message.Response.Status)
744var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
749return ResponseWithHeaders.FromValue(value, headers, message.Response);
752throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
776var headers = new DirectoryListFilesAndDirectoriesSegmentHeaders(message.Response);
777switch (message.Response.Status)
782var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
787return ResponseWithHeaders.FromValue(value, headers, message.Response);
790throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\FileRestClient.cs (140)
136var headers = new FileCreateHeaders(message.Response);
137switch (message.Response.Status)
140return ResponseWithHeaders.FromValue(headers, message.Response);
142throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
176var headers = new FileCreateHeaders(message.Response);
177switch (message.Response.Status)
180return ResponseWithHeaders.FromValue(headers, message.Response);
182throw _clientDiagnostics.CreateRequestFailedException(message.Response);
226var headers = new FileDownloadHeaders(message.Response);
227switch (message.Response.Status)
233return ResponseWithHeaders.FromValue(value, headers, message.Response);
236throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
250var headers = new FileDownloadHeaders(message.Response);
251switch (message.Response.Status)
257return ResponseWithHeaders.FromValue(value, headers, message.Response);
260throw _clientDiagnostics.CreateRequestFailedException(message.Response);
298var headers = new FileGetPropertiesHeaders(message.Response);
299switch (message.Response.Status)
302return ResponseWithHeaders.FromValue(headers, message.Response);
304throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
317var headers = new FileGetPropertiesHeaders(message.Response);
318switch (message.Response.Status)
321return ResponseWithHeaders.FromValue(headers, message.Response);
323throw _clientDiagnostics.CreateRequestFailedException(message.Response);
356var headers = new FileDeleteHeaders(message.Response);
357switch (message.Response.Status)
360return ResponseWithHeaders.FromValue(headers, message.Response);
362throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
374var headers = new FileDeleteHeaders(message.Response);
375switch (message.Response.Status)
378return ResponseWithHeaders.FromValue(headers, message.Response);
380throw _clientDiagnostics.CreateRequestFailedException(message.Response);
474var headers = new FileSetHttpHeadersHeaders(message.Response);
475switch (message.Response.Status)
478return ResponseWithHeaders.FromValue(headers, message.Response);
480throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
513var headers = new FileSetHttpHeadersHeaders(message.Response);
514switch (message.Response.Status)
517return ResponseWithHeaders.FromValue(headers, message.Response);
519throw _clientDiagnostics.CreateRequestFailedException(message.Response);
558var headers = new FileSetMetadataHeaders(message.Response);
559switch (message.Response.Status)
562return ResponseWithHeaders.FromValue(headers, message.Response);
564throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
577var headers = new FileSetMetadataHeaders(message.Response);
578switch (message.Response.Status)
581return ResponseWithHeaders.FromValue(headers, message.Response);
583throw _clientDiagnostics.CreateRequestFailedException(message.Response);
623var headers = new FileAcquireLeaseHeaders(message.Response);
624switch (message.Response.Status)
627return ResponseWithHeaders.FromValue(headers, message.Response);
629throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
642var headers = new FileAcquireLeaseHeaders(message.Response);
643switch (message.Response.Status)
646return ResponseWithHeaders.FromValue(headers, message.Response);
648throw _clientDiagnostics.CreateRequestFailedException(message.Response);
686var headers = new FileReleaseLeaseHeaders(message.Response);
687switch (message.Response.Status)
690return ResponseWithHeaders.FromValue(headers, message.Response);
692throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
710var headers = new FileReleaseLeaseHeaders(message.Response);
711switch (message.Response.Status)
714return ResponseWithHeaders.FromValue(headers, message.Response);
716throw _clientDiagnostics.CreateRequestFailedException(message.Response);
759var headers = new FileChangeLeaseHeaders(message.Response);
760switch (message.Response.Status)
763return ResponseWithHeaders.FromValue(headers, message.Response);
765throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
784var headers = new FileChangeLeaseHeaders(message.Response);
785switch (message.Response.Status)
788return ResponseWithHeaders.FromValue(headers, message.Response);
790throw _clientDiagnostics.CreateRequestFailedException(message.Response);
825var headers = new FileBreakLeaseHeaders(message.Response);
826switch (message.Response.Status)
829return ResponseWithHeaders.FromValue(headers, message.Response);
831throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
843var headers = new FileBreakLeaseHeaders(message.Response);
844switch (message.Response.Status)
847return ResponseWithHeaders.FromValue(headers, message.Response);
849throw _clientDiagnostics.CreateRequestFailedException(message.Response);
906var headers = new FileUploadRangeHeaders(message.Response);
907switch (message.Response.Status)
910return ResponseWithHeaders.FromValue(headers, message.Response);
912throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
935var headers = new FileUploadRangeHeaders(message.Response);
936switch (message.Response.Status)
939return ResponseWithHeaders.FromValue(headers, message.Response);
941throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1015var headers = new FileUploadRangeFromURLHeaders(message.Response);
1016switch (message.Response.Status)
1019return ResponseWithHeaders.FromValue(headers, message.Response);
1021throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1050var headers = new FileUploadRangeFromURLHeaders(message.Response);
1051switch (message.Response.Status)
1054return ResponseWithHeaders.FromValue(headers, message.Response);
1056throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1105var headers = new FileGetRangeListHeaders(message.Response);
1106switch (message.Response.Status)
1111var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
1116return ResponseWithHeaders.FromValue(value, headers, message.Response);
1119throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1134var headers = new FileGetRangeListHeaders(message.Response);
1135switch (message.Response.Status)
1140var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
1145return ResponseWithHeaders.FromValue(value, headers, message.Response);
1148throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1229var headers = new FileStartCopyHeaders(message.Response);
1230switch (message.Response.Status)
1233return ResponseWithHeaders.FromValue(headers, message.Response);
1235throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1258var headers = new FileStartCopyHeaders(message.Response);
1259switch (message.Response.Status)
1262return ResponseWithHeaders.FromValue(headers, message.Response);
1264throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1307var headers = new FileAbortCopyHeaders(message.Response);
1308switch (message.Response.Status)
1311return ResponseWithHeaders.FromValue(headers, message.Response);
1313throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1332var headers = new FileAbortCopyHeaders(message.Response);
1333switch (message.Response.Status)
1336return ResponseWithHeaders.FromValue(headers, message.Response);
1338throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1382var headers = new FileListHandlesHeaders(message.Response);
1383switch (message.Response.Status)
1388var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
1393return ResponseWithHeaders.FromValue(value, headers, message.Response);
1396throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1410var headers = new FileListHandlesHeaders(message.Response);
1411switch (message.Response.Status)
1416var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
1421return ResponseWithHeaders.FromValue(value, headers, message.Response);
1424throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1471var headers = new FileForceCloseHandlesHeaders(message.Response);
1472switch (message.Response.Status)
1475return ResponseWithHeaders.FromValue(headers, message.Response);
1477throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1497var headers = new FileForceCloseHandlesHeaders(message.Response);
1498switch (message.Response.Status)
1501return ResponseWithHeaders.FromValue(headers, message.Response);
1503throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ServiceRestClient.cs (38)
78var headers = new ServiceSetPropertiesHeaders(message.Response);
79switch (message.Response.Status)
82return ResponseWithHeaders.FromValue(headers, message.Response);
84throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
102var headers = new ServiceSetPropertiesHeaders(message.Response);
103switch (message.Response.Status)
106return ResponseWithHeaders.FromValue(headers, message.Response);
108throw _clientDiagnostics.CreateRequestFailedException(message.Response);
139var headers = new ServiceGetPropertiesHeaders(message.Response);
140switch (message.Response.Status)
145var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
150return ResponseWithHeaders.FromValue(value, headers, message.Response);
153throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
164var headers = new ServiceGetPropertiesHeaders(message.Response);
165switch (message.Response.Status)
170var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
175return ResponseWithHeaders.FromValue(value, headers, message.Response);
178throw _clientDiagnostics.CreateRequestFailedException(message.Response);
228var headers = new ServiceListSharesSegmentHeaders(message.Response);
229switch (message.Response.Status)
234var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
239return ResponseWithHeaders.FromValue(value, headers, message.Response);
242throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
257var headers = new ServiceListSharesSegmentHeaders(message.Response);
258switch (message.Response.Status)
263var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
268return ResponseWithHeaders.FromValue(value, headers, message.Response);
271throw _clientDiagnostics.CreateRequestFailedException(message.Response);
307var headers = new ServiceListSharesSegmentHeaders(message.Response);
308switch (message.Response.Status)
313var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
318return ResponseWithHeaders.FromValue(value, headers, message.Response);
321throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
343var headers = new ServiceListSharesSegmentHeaders(message.Response);
344switch (message.Response.Status)
349var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
354return ResponseWithHeaders.FromValue(value, headers, message.Response);
357throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ShareRestClient.cs (142)
91var headers = new ShareCreateHeaders(message.Response);
92switch (message.Response.Status)
95return ResponseWithHeaders.FromValue(headers, message.Response);
97throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
113var headers = new ShareCreateHeaders(message.Response);
114switch (message.Response.Status)
117return ResponseWithHeaders.FromValue(headers, message.Response);
119throw _clientDiagnostics.CreateRequestFailedException(message.Response);
158var headers = new ShareGetPropertiesHeaders(message.Response);
159switch (message.Response.Status)
162return ResponseWithHeaders.FromValue(headers, message.Response);
164throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
177var headers = new ShareGetPropertiesHeaders(message.Response);
178switch (message.Response.Status)
181return ResponseWithHeaders.FromValue(headers, message.Response);
183throw _clientDiagnostics.CreateRequestFailedException(message.Response);
227var headers = new ShareDeleteHeaders(message.Response);
228switch (message.Response.Status)
231return ResponseWithHeaders.FromValue(headers, message.Response);
233throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
247var headers = new ShareDeleteHeaders(message.Response);
248switch (message.Response.Status)
251return ResponseWithHeaders.FromValue(headers, message.Response);
253throw _clientDiagnostics.CreateRequestFailedException(message.Response);
299var headers = new ShareAcquireLeaseHeaders(message.Response);
300switch (message.Response.Status)
303return ResponseWithHeaders.FromValue(headers, message.Response);
305throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
319var headers = new ShareAcquireLeaseHeaders(message.Response);
320switch (message.Response.Status)
323return ResponseWithHeaders.FromValue(headers, message.Response);
325throw _clientDiagnostics.CreateRequestFailedException(message.Response);
369var headers = new ShareReleaseLeaseHeaders(message.Response);
370switch (message.Response.Status)
373return ResponseWithHeaders.FromValue(headers, message.Response);
375throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
394var headers = new ShareReleaseLeaseHeaders(message.Response);
395switch (message.Response.Status)
398return ResponseWithHeaders.FromValue(headers, message.Response);
400throw _clientDiagnostics.CreateRequestFailedException(message.Response);
449var headers = new ShareChangeLeaseHeaders(message.Response);
450switch (message.Response.Status)
453return ResponseWithHeaders.FromValue(headers, message.Response);
455throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
475var headers = new ShareChangeLeaseHeaders(message.Response);
476switch (message.Response.Status)
479return ResponseWithHeaders.FromValue(headers, message.Response);
481throw _clientDiagnostics.CreateRequestFailedException(message.Response);
525var headers = new ShareRenewLeaseHeaders(message.Response);
526switch (message.Response.Status)
529return ResponseWithHeaders.FromValue(headers, message.Response);
531throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
550var headers = new ShareRenewLeaseHeaders(message.Response);
551switch (message.Response.Status)
554return ResponseWithHeaders.FromValue(headers, message.Response);
556throw _clientDiagnostics.CreateRequestFailedException(message.Response);
602var headers = new ShareBreakLeaseHeaders(message.Response);
603switch (message.Response.Status)
606return ResponseWithHeaders.FromValue(headers, message.Response);
608throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
622var headers = new ShareBreakLeaseHeaders(message.Response);
623switch (message.Response.Status)
626return ResponseWithHeaders.FromValue(headers, message.Response);
628throw _clientDiagnostics.CreateRequestFailedException(message.Response);
663var headers = new ShareCreateSnapshotHeaders(message.Response);
664switch (message.Response.Status)
667return ResponseWithHeaders.FromValue(headers, message.Response);
669throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
681var headers = new ShareCreateSnapshotHeaders(message.Response);
682switch (message.Response.Status)
685return ResponseWithHeaders.FromValue(headers, message.Response);
687throw _clientDiagnostics.CreateRequestFailedException(message.Response);
728var headers = new ShareCreatePermissionHeaders(message.Response);
729switch (message.Response.Status)
732return ResponseWithHeaders.FromValue(headers, message.Response);
734throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
752var headers = new ShareCreatePermissionHeaders(message.Response);
753switch (message.Response.Status)
756return ResponseWithHeaders.FromValue(headers, message.Response);
758throw _clientDiagnostics.CreateRequestFailedException(message.Response);
796var headers = new ShareGetPermissionHeaders(message.Response);
797switch (message.Response.Status)
802using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
804return ResponseWithHeaders.FromValue(value, headers, message.Response);
807throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
825var headers = new ShareGetPermissionHeaders(message.Response);
826switch (message.Response.Status)
831using var document = JsonDocument.Parse(message.Response.ContentStream);
833return ResponseWithHeaders.FromValue(value, headers, message.Response);
836throw _clientDiagnostics.CreateRequestFailedException(message.Response);
886var headers = new ShareSetPropertiesHeaders(message.Response);
887switch (message.Response.Status)
890return ResponseWithHeaders.FromValue(headers, message.Response);
892throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
907var headers = new ShareSetPropertiesHeaders(message.Response);
908switch (message.Response.Status)
911return ResponseWithHeaders.FromValue(headers, message.Response);
913throw _clientDiagnostics.CreateRequestFailedException(message.Response);
953var headers = new ShareSetMetadataHeaders(message.Response);
954switch (message.Response.Status)
957return ResponseWithHeaders.FromValue(headers, message.Response);
959throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
972var headers = new ShareSetMetadataHeaders(message.Response);
973switch (message.Response.Status)
976return ResponseWithHeaders.FromValue(headers, message.Response);
978throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1013var headers = new ShareGetAccessPolicyHeaders(message.Response);
1014switch (message.Response.Status)
1019var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
1029return ResponseWithHeaders.FromValue(value, headers, message.Response);
1032throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1044var headers = new ShareGetAccessPolicyHeaders(message.Response);
1045switch (message.Response.Status)
1050var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
1060return ResponseWithHeaders.FromValue(value, headers, message.Response);
1063throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1111var headers = new ShareSetAccessPolicyHeaders(message.Response);
1112switch (message.Response.Status)
1115return ResponseWithHeaders.FromValue(headers, message.Response);
1117throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1130var headers = new ShareSetAccessPolicyHeaders(message.Response);
1131switch (message.Response.Status)
1134return ResponseWithHeaders.FromValue(headers, message.Response);
1136throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1171var headers = new ShareGetStatisticsHeaders(message.Response);
1172switch (message.Response.Status)
1177var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
1182return ResponseWithHeaders.FromValue(value, headers, message.Response);
1185throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1197var headers = new ShareGetStatisticsHeaders(message.Response);
1198switch (message.Response.Status)
1203var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
1208return ResponseWithHeaders.FromValue(value, headers, message.Response);
1211throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1251var headers = new ShareRestoreHeaders(message.Response);
1252switch (message.Response.Status)
1255return ResponseWithHeaders.FromValue(headers, message.Response);
1257throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1270var headers = new ShareRestoreHeaders(message.Response);
1271switch (message.Response.Status)
1274return ResponseWithHeaders.FromValue(headers, message.Response);
1276throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Azure.Storage.Files.Shares.Samples.Tests (7)
Azure.Storage.Files.Shares.Tests (7)
Azure.Storage.Queues (162)
Generated\MessagesRestClient.cs (38)
75var headers = new MessagesDequeueHeaders(message.Response);
76switch (message.Response.Status)
81var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
91return ResponseWithHeaders.FromValue(value, headers, message.Response);
94throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
107var headers = new MessagesDequeueHeaders(message.Response);
108switch (message.Response.Status)
113var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
123return ResponseWithHeaders.FromValue(value, headers, message.Response);
126throw _clientDiagnostics.CreateRequestFailedException(message.Response);
155var headers = new MessagesClearHeaders(message.Response);
156switch (message.Response.Status)
159return ResponseWithHeaders.FromValue(headers, message.Response);
161throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
172var headers = new MessagesClearHeaders(message.Response);
173switch (message.Response.Status)
176return ResponseWithHeaders.FromValue(headers, message.Response);
178throw _clientDiagnostics.CreateRequestFailedException(message.Response);
228var headers = new MessagesEnqueueHeaders(message.Response);
229switch (message.Response.Status)
234var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
244return ResponseWithHeaders.FromValue(value, headers, message.Response);
247throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
267var headers = new MessagesEnqueueHeaders(message.Response);
268switch (message.Response.Status)
273var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
283return ResponseWithHeaders.FromValue(value, headers, message.Response);
286throw _clientDiagnostics.CreateRequestFailedException(message.Response);
321var headers = new MessagesPeekHeaders(message.Response);
322switch (message.Response.Status)
327var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
337return ResponseWithHeaders.FromValue(value, headers, message.Response);
340throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
352var headers = new MessagesPeekHeaders(message.Response);
353switch (message.Response.Status)
358var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
368return ResponseWithHeaders.FromValue(value, headers, message.Response);
371throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\QueueRestClient.cs (50)
69var headers = new QueueCreateHeaders(message.Response);
70switch (message.Response.Status)
74return ResponseWithHeaders.FromValue(headers, message.Response);
76throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
88var headers = new QueueCreateHeaders(message.Response);
89switch (message.Response.Status)
93return ResponseWithHeaders.FromValue(headers, message.Response);
95throw _clientDiagnostics.CreateRequestFailedException(message.Response);
123var headers = new QueueDeleteHeaders(message.Response);
124switch (message.Response.Status)
127return ResponseWithHeaders.FromValue(headers, message.Response);
129throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
140var headers = new QueueDeleteHeaders(message.Response);
141switch (message.Response.Status)
144return ResponseWithHeaders.FromValue(headers, message.Response);
146throw _clientDiagnostics.CreateRequestFailedException(message.Response);
175var headers = new QueueGetPropertiesHeaders(message.Response);
176switch (message.Response.Status)
179return ResponseWithHeaders.FromValue(headers, message.Response);
181throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
192var headers = new QueueGetPropertiesHeaders(message.Response);
193switch (message.Response.Status)
196return ResponseWithHeaders.FromValue(headers, message.Response);
198throw _clientDiagnostics.CreateRequestFailedException(message.Response);
232var headers = new QueueSetMetadataHeaders(message.Response);
233switch (message.Response.Status)
236return ResponseWithHeaders.FromValue(headers, message.Response);
238throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
250var headers = new QueueSetMetadataHeaders(message.Response);
251switch (message.Response.Status)
254return ResponseWithHeaders.FromValue(headers, message.Response);
256throw _clientDiagnostics.CreateRequestFailedException(message.Response);
285var headers = new QueueGetAccessPolicyHeaders(message.Response);
286switch (message.Response.Status)
291var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
301return ResponseWithHeaders.FromValue(value, headers, message.Response);
304throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
315var headers = new QueueGetAccessPolicyHeaders(message.Response);
316switch (message.Response.Status)
321var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
331return ResponseWithHeaders.FromValue(value, headers, message.Response);
334throw _clientDiagnostics.CreateRequestFailedException(message.Response);
376var headers = new QueueSetAccessPolicyHeaders(message.Response);
377switch (message.Response.Status)
380return ResponseWithHeaders.FromValue(headers, message.Response);
382throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
394var headers = new QueueSetAccessPolicyHeaders(message.Response);
395switch (message.Response.Status)
398return ResponseWithHeaders.FromValue(headers, message.Response);
400throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Generated\ServiceRestClient.cs (48)
78var headers = new ServiceSetPropertiesHeaders(message.Response);
79switch (message.Response.Status)
82return ResponseWithHeaders.FromValue(headers, message.Response);
84throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
102var headers = new ServiceSetPropertiesHeaders(message.Response);
103switch (message.Response.Status)
106return ResponseWithHeaders.FromValue(headers, message.Response);
108throw _clientDiagnostics.CreateRequestFailedException(message.Response);
139var headers = new ServiceGetPropertiesHeaders(message.Response);
140switch (message.Response.Status)
145var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
150return ResponseWithHeaders.FromValue(value, headers, message.Response);
153throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
164var headers = new ServiceGetPropertiesHeaders(message.Response);
165switch (message.Response.Status)
170var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
175return ResponseWithHeaders.FromValue(value, headers, message.Response);
178throw _clientDiagnostics.CreateRequestFailedException(message.Response);
209var headers = new ServiceGetStatisticsHeaders(message.Response);
210switch (message.Response.Status)
215var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
220return ResponseWithHeaders.FromValue(value, headers, message.Response);
223throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
234var headers = new ServiceGetStatisticsHeaders(message.Response);
235switch (message.Response.Status)
240var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
245return ResponseWithHeaders.FromValue(value, headers, message.Response);
248throw _clientDiagnostics.CreateRequestFailedException(message.Response);
298var headers = new ServiceListQueuesSegmentHeaders(message.Response);
299switch (message.Response.Status)
304var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
309return ResponseWithHeaders.FromValue(value, headers, message.Response);
312throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
327var headers = new ServiceListQueuesSegmentHeaders(message.Response);
328switch (message.Response.Status)
333var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
338return ResponseWithHeaders.FromValue(value, headers, message.Response);
341throw _clientDiagnostics.CreateRequestFailedException(message.Response);
377var headers = new ServiceListQueuesSegmentHeaders(message.Response);
378switch (message.Response.Status)
383var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
388return ResponseWithHeaders.FromValue(value, headers, message.Response);
391throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
413var headers = new ServiceListQueuesSegmentHeaders(message.Response);
414switch (message.Response.Status)
419var document = XDocument.Load(message.Response.ContentStream, LoadOptions.PreserveWhitespace);
424return ResponseWithHeaders.FromValue(value, headers, message.Response);
427throw _clientDiagnostics.CreateRequestFailedException(message.Response);
Azure.Storage.Queues.Samples.Tests (7)
Azure.Storage.Queues.Tests (7)
Azure.Template (10)
Azure.Verticals.AgriFood.Farming (770)
Generated\BoundariesClient.cs (80)
141switch (message.Response.Status)
144return message.Response;
146throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
151return message.Response;
244switch (message.Response.Status)
247return message.Response;
249throw _clientDiagnostics.CreateRequestFailedException(message.Response);
254return message.Response;
426switch (message.Response.Status)
429return message.Response;
431throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
436return message.Response;
532switch (message.Response.Status)
535return message.Response;
537throw _clientDiagnostics.CreateRequestFailedException(message.Response);
542return message.Response;
652switch (message.Response.Status)
655return message.Response;
657throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
662return message.Response;
754switch (message.Response.Status)
757return message.Response;
759throw _clientDiagnostics.CreateRequestFailedException(message.Response);
764return message.Response;
933switch (message.Response.Status)
936return message.Response;
938throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
943return message.Response;
1038switch (message.Response.Status)
1041return message.Response;
1043throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1048return message.Response;
1128switch (message.Response.Status)
1131return message.Response;
1133throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1138return message.Response;
1202switch (message.Response.Status)
1205return message.Response;
1207throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1212return message.Response;
1293switch (message.Response.Status)
1296return new LowLevelBinaryDataOperation(_clientDiagnostics, Pipeline, message.Request, message.Response, OperationFinalStateVia.Location, "BoundariesClient.CreateCascadeDeleteJob");
1298throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1303return new LowLevelBinaryDataOperation(_clientDiagnostics, Pipeline, message.Request, message.Response, OperationFinalStateVia.Location, "BoundariesClient.CreateCascadeDeleteJob");
1369switch (message.Response.Status)
1372return new LowLevelBinaryDataOperation(_clientDiagnostics, Pipeline, message.Request, message.Response, OperationFinalStateVia.Location, "BoundariesClient.CreateCascadeDeleteJob");
1374throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1379return new LowLevelBinaryDataOperation(_clientDiagnostics, Pipeline, message.Request, message.Response, OperationFinalStateVia.Location, "BoundariesClient.CreateCascadeDeleteJob");
1463switch (message.Response.Status)
1466return message.Response;
1468throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1473return message.Response;
1540switch (message.Response.Status)
1543return message.Response;
1545throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1550return message.Response;
1656switch (message.Response.Status)
1660return message.Response;
1662throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1667return message.Response;
1756switch (message.Response.Status)
1760return message.Response;
1762throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1767return message.Response;
1832switch (message.Response.Status)
1835return message.Response;
1837throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1842return message.Response;
1888switch (message.Response.Status)
1891return message.Response;
1893throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1898return message.Response;
1971switch (message.Response.Status)
1974return message.Response;
1976throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1981return message.Response;
2037switch (message.Response.Status)
2040return message.Response;
2042throw _clientDiagnostics.CreateRequestFailedException(message.Response);
2047return message.Response;
Generated\FarmClient.cs (16)
133switch (message.Response.Status)
136return new LowLevelBinaryDataOperation(_clientDiagnostics, Pipeline, message.Request, message.Response, OperationFinalStateVia.Location, "FarmClient.CreateDataIngestionJob");
138throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
143return new LowLevelBinaryDataOperation(_clientDiagnostics, Pipeline, message.Request, message.Response, OperationFinalStateVia.Location, "FarmClient.CreateDataIngestionJob");
229switch (message.Response.Status)
232return new LowLevelBinaryDataOperation(_clientDiagnostics, Pipeline, message.Request, message.Response, OperationFinalStateVia.Location, "FarmClient.CreateDataIngestionJob");
234throw _clientDiagnostics.CreateRequestFailedException(message.Response);
239return new LowLevelBinaryDataOperation(_clientDiagnostics, Pipeline, message.Request, message.Response, OperationFinalStateVia.Location, "FarmClient.CreateDataIngestionJob");
321switch (message.Response.Status)
324return message.Response;
326throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
331return message.Response;
396switch (message.Response.Status)
399return message.Response;
401throw _clientDiagnostics.CreateRequestFailedException(message.Response);
406return message.Response;
Generated\FarmersClient.cs (48)
127switch (message.Response.Status)
130return message.Response;
132throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
137return message.Response;
216switch (message.Response.Status)
219return message.Response;
221throw _clientDiagnostics.CreateRequestFailedException(message.Response);
226return message.Response;
338switch (message.Response.Status)
341return message.Response;
343throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
348return message.Response;
406switch (message.Response.Status)
409return message.Response;
411throw _clientDiagnostics.CreateRequestFailedException(message.Response);
416return message.Response;
503switch (message.Response.Status)
507return message.Response;
509throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
514return message.Response;
586switch (message.Response.Status)
590return message.Response;
592throw _clientDiagnostics.CreateRequestFailedException(message.Response);
597return message.Response;
659switch (message.Response.Status)
662return message.Response;
664throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
669return message.Response;
714switch (message.Response.Status)
717return message.Response;
719throw _clientDiagnostics.CreateRequestFailedException(message.Response);
724return message.Response;
803switch (message.Response.Status)
806return message.Response;
808throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
813return message.Response;
877switch (message.Response.Status)
880return message.Response;
882throw _clientDiagnostics.CreateRequestFailedException(message.Response);
887return message.Response;
967switch (message.Response.Status)
970return new LowLevelBinaryDataOperation(_clientDiagnostics, Pipeline, message.Request, message.Response, OperationFinalStateVia.Location, "FarmersClient.CreateCascadeDeleteJob");
972throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
977return new LowLevelBinaryDataOperation(_clientDiagnostics, Pipeline, message.Request, message.Response, OperationFinalStateVia.Location, "FarmersClient.CreateCascadeDeleteJob");
1042switch (message.Response.Status)
1045return new LowLevelBinaryDataOperation(_clientDiagnostics, Pipeline, message.Request, message.Response, OperationFinalStateVia.Location, "FarmersClient.CreateCascadeDeleteJob");
1047throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1052return new LowLevelBinaryDataOperation(_clientDiagnostics, Pipeline, message.Request, message.Response, OperationFinalStateVia.Location, "FarmersClient.CreateCascadeDeleteJob");
Generated\FarmsClient.cs (56)
129switch (message.Response.Status)
132return message.Response;
134throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
139return message.Response;
220switch (message.Response.Status)
223return message.Response;
225throw _clientDiagnostics.CreateRequestFailedException(message.Response);
230return message.Response;
366switch (message.Response.Status)
369return message.Response;
371throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
376return message.Response;
456switch (message.Response.Status)
459return message.Response;
461throw _clientDiagnostics.CreateRequestFailedException(message.Response);
466return message.Response;
580switch (message.Response.Status)
583return message.Response;
585throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
590return message.Response;
650switch (message.Response.Status)
653return message.Response;
655throw _clientDiagnostics.CreateRequestFailedException(message.Response);
660return message.Response;
752switch (message.Response.Status)
756return message.Response;
758throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
763return message.Response;
838switch (message.Response.Status)
842return message.Response;
844throw _clientDiagnostics.CreateRequestFailedException(message.Response);
849return message.Response;
914switch (message.Response.Status)
917return message.Response;
919throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
924return message.Response;
970switch (message.Response.Status)
973return message.Response;
975throw _clientDiagnostics.CreateRequestFailedException(message.Response);
980return message.Response;
1061switch (message.Response.Status)
1064return message.Response;
1066throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1071return message.Response;
1135switch (message.Response.Status)
1138return message.Response;
1140throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1145return message.Response;
1226switch (message.Response.Status)
1229return new LowLevelBinaryDataOperation(_clientDiagnostics, Pipeline, message.Request, message.Response, OperationFinalStateVia.Location, "FarmsClient.CreateCascadeDeleteJob");
1231throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1236return new LowLevelBinaryDataOperation(_clientDiagnostics, Pipeline, message.Request, message.Response, OperationFinalStateVia.Location, "FarmsClient.CreateCascadeDeleteJob");
1302switch (message.Response.Status)
1305return new LowLevelBinaryDataOperation(_clientDiagnostics, Pipeline, message.Request, message.Response, OperationFinalStateVia.Location, "FarmsClient.CreateCascadeDeleteJob");
1307throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1312return new LowLevelBinaryDataOperation(_clientDiagnostics, Pipeline, message.Request, message.Response, OperationFinalStateVia.Location, "FarmsClient.CreateCascadeDeleteJob");
Generated\FieldsClient.cs (56)
133switch (message.Response.Status)
136return message.Response;
138throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
143return message.Response;
228switch (message.Response.Status)
231return message.Response;
233throw _clientDiagnostics.CreateRequestFailedException(message.Response);
238return message.Response;
382switch (message.Response.Status)
385return message.Response;
387throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
392return message.Response;
476switch (message.Response.Status)
479return message.Response;
481throw _clientDiagnostics.CreateRequestFailedException(message.Response);
486return message.Response;
607switch (message.Response.Status)
610return message.Response;
612throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
617return message.Response;
680switch (message.Response.Status)
683return message.Response;
685throw _clientDiagnostics.CreateRequestFailedException(message.Response);
690return message.Response;
788switch (message.Response.Status)
792return message.Response;
794throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
799return message.Response;
880switch (message.Response.Status)
884return message.Response;
886throw _clientDiagnostics.CreateRequestFailedException(message.Response);
891return message.Response;
956switch (message.Response.Status)
959return message.Response;
961throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
966return message.Response;
1012switch (message.Response.Status)
1015return message.Response;
1017throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1022return message.Response;
1103switch (message.Response.Status)
1106return message.Response;
1108throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1113return message.Response;
1177switch (message.Response.Status)
1180return message.Response;
1182throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1187return message.Response;
1268switch (message.Response.Status)
1271return new LowLevelBinaryDataOperation(_clientDiagnostics, Pipeline, message.Request, message.Response, OperationFinalStateVia.Location, "FieldsClient.CreateCascadeDeleteJob");
1273throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1278return new LowLevelBinaryDataOperation(_clientDiagnostics, Pipeline, message.Request, message.Response, OperationFinalStateVia.Location, "FieldsClient.CreateCascadeDeleteJob");
1344switch (message.Response.Status)
1347return new LowLevelBinaryDataOperation(_clientDiagnostics, Pipeline, message.Request, message.Response, OperationFinalStateVia.Location, "FieldsClient.CreateCascadeDeleteJob");
1349throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1354return new LowLevelBinaryDataOperation(_clientDiagnostics, Pipeline, message.Request, message.Response, OperationFinalStateVia.Location, "FieldsClient.CreateCascadeDeleteJob");
Generated\ImageProcessingClient.cs (16)
115switch (message.Response.Status)
118return new LowLevelBinaryDataOperation(_clientDiagnostics, Pipeline, message.Request, message.Response, OperationFinalStateVia.Location, "ImageProcessingClient.CreateRasterizeJob");
120throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
125return new LowLevelBinaryDataOperation(_clientDiagnostics, Pipeline, message.Request, message.Response, OperationFinalStateVia.Location, "ImageProcessingClient.CreateRasterizeJob");
193switch (message.Response.Status)
196return new LowLevelBinaryDataOperation(_clientDiagnostics, Pipeline, message.Request, message.Response, OperationFinalStateVia.Location, "ImageProcessingClient.CreateRasterizeJob");
198throw _clientDiagnostics.CreateRequestFailedException(message.Response);
203return new LowLevelBinaryDataOperation(_clientDiagnostics, Pipeline, message.Request, message.Response, OperationFinalStateVia.Location, "ImageProcessingClient.CreateRasterizeJob");
268switch (message.Response.Status)
271return message.Response;
273throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
278return message.Response;
326switch (message.Response.Status)
329return message.Response;
331throw _clientDiagnostics.CreateRequestFailedException(message.Response);
336return message.Response;
Generated\OAuthTokensClient.cs (32)
121switch (message.Response.Status)
124return message.Response;
126throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
131return message.Response;
204switch (message.Response.Status)
207return message.Response;
209throw _clientDiagnostics.CreateRequestFailedException(message.Response);
214return message.Response;
318switch (message.Response.Status)
321return message.Response;
323throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
328return message.Response;
382switch (message.Response.Status)
385return message.Response;
387throw _clientDiagnostics.CreateRequestFailedException(message.Response);
392return message.Response;
472switch (message.Response.Status)
475return message.Response;
477throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
482return message.Response;
546switch (message.Response.Status)
549return message.Response;
551throw _clientDiagnostics.CreateRequestFailedException(message.Response);
556return message.Response;
637switch (message.Response.Status)
640return new LowLevelBinaryDataOperation(_clientDiagnostics, Pipeline, message.Request, message.Response, OperationFinalStateVia.Location, "OAuthTokensClient.CreateCascadeDeleteJob");
642throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
647return new LowLevelBinaryDataOperation(_clientDiagnostics, Pipeline, message.Request, message.Response, OperationFinalStateVia.Location, "OAuthTokensClient.CreateCascadeDeleteJob");
713switch (message.Response.Status)
716return new LowLevelBinaryDataOperation(_clientDiagnostics, Pipeline, message.Request, message.Response, OperationFinalStateVia.Location, "OAuthTokensClient.CreateCascadeDeleteJob");
718throw _clientDiagnostics.CreateRequestFailedException(message.Response);
723return new LowLevelBinaryDataOperation(_clientDiagnostics, Pipeline, message.Request, message.Response, OperationFinalStateVia.Location, "OAuthTokensClient.CreateCascadeDeleteJob");
Generated\ScenesClient.cs (32)
138switch (message.Response.Status)
141return message.Response;
143throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
148return message.Response;
238switch (message.Response.Status)
241return message.Response;
243throw _clientDiagnostics.CreateRequestFailedException(message.Response);
248return message.Response;
405switch (message.Response.Status)
408return new LowLevelBinaryDataOperation(_clientDiagnostics, Pipeline, message.Request, message.Response, OperationFinalStateVia.Location, "ScenesClient.CreateSatelliteDataIngestionJob");
410throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
415return new LowLevelBinaryDataOperation(_clientDiagnostics, Pipeline, message.Request, message.Response, OperationFinalStateVia.Location, "ScenesClient.CreateSatelliteDataIngestionJob");
515switch (message.Response.Status)
518return new LowLevelBinaryDataOperation(_clientDiagnostics, Pipeline, message.Request, message.Response, OperationFinalStateVia.Location, "ScenesClient.CreateSatelliteDataIngestionJob");
520throw _clientDiagnostics.CreateRequestFailedException(message.Response);
525return new LowLevelBinaryDataOperation(_clientDiagnostics, Pipeline, message.Request, message.Response, OperationFinalStateVia.Location, "ScenesClient.CreateSatelliteDataIngestionJob");
614switch (message.Response.Status)
617return message.Response;
619throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
624return message.Response;
696switch (message.Response.Status)
699return message.Response;
701throw _clientDiagnostics.CreateRequestFailedException(message.Response);
706return message.Response;
766switch (message.Response.Status)
769return message.Response;
771throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
776return message.Response;
821switch (message.Response.Status)
824return message.Response;
826throw _clientDiagnostics.CreateRequestFailedException(message.Response);
831return message.Response;
Generated\SeasonalFieldsClient.cs (56)
154switch (message.Response.Status)
157return message.Response;
159throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
164return message.Response;
270switch (message.Response.Status)
273return message.Response;
275throw _clientDiagnostics.CreateRequestFailedException(message.Response);
280return message.Response;
493switch (message.Response.Status)
496return message.Response;
498throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
503return message.Response;
608switch (message.Response.Status)
611return message.Response;
613throw _clientDiagnostics.CreateRequestFailedException(message.Response);
618return message.Response;
796switch (message.Response.Status)
799return message.Response;
801throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
806return message.Response;
878switch (message.Response.Status)
881return message.Response;
883throw _clientDiagnostics.CreateRequestFailedException(message.Response);
888return message.Response;
1004switch (message.Response.Status)
1008return message.Response;
1010throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1015return message.Response;
1114switch (message.Response.Status)
1118return message.Response;
1120throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1125return message.Response;
1190switch (message.Response.Status)
1193return message.Response;
1195throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1200return message.Response;
1246switch (message.Response.Status)
1249return message.Response;
1251throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1256return message.Response;
1337switch (message.Response.Status)
1340return message.Response;
1342throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1347return message.Response;
1411switch (message.Response.Status)
1414return message.Response;
1416throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1421return message.Response;
1502switch (message.Response.Status)
1505return new LowLevelBinaryDataOperation(_clientDiagnostics, Pipeline, message.Request, message.Response, OperationFinalStateVia.Location, "SeasonalFieldsClient.CreateCascadeDeleteJob");
1507throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
1512return new LowLevelBinaryDataOperation(_clientDiagnostics, Pipeline, message.Request, message.Response, OperationFinalStateVia.Location, "SeasonalFieldsClient.CreateCascadeDeleteJob");
1578switch (message.Response.Status)
1581return new LowLevelBinaryDataOperation(_clientDiagnostics, Pipeline, message.Request, message.Response, OperationFinalStateVia.Location, "SeasonalFieldsClient.CreateCascadeDeleteJob");
1583throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1588return new LowLevelBinaryDataOperation(_clientDiagnostics, Pipeline, message.Request, message.Response, OperationFinalStateVia.Location, "SeasonalFieldsClient.CreateCascadeDeleteJob");
Generated\WeatherClient.cs (40)
149switch (message.Response.Status)
152return message.Response;
154throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
159return message.Response;
261switch (message.Response.Status)
264return message.Response;
266throw _clientDiagnostics.CreateRequestFailedException(message.Response);
271return message.Response;
374switch (message.Response.Status)
377return message.Response;
379throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
384return message.Response;
452switch (message.Response.Status)
455return message.Response;
457throw _clientDiagnostics.CreateRequestFailedException(message.Response);
462return message.Response;
569switch (message.Response.Status)
572return new LowLevelBinaryDataOperation(_clientDiagnostics, Pipeline, message.Request, message.Response, OperationFinalStateVia.Location, "WeatherClient.CreateDataIngestionJob");
574throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
579return new LowLevelBinaryDataOperation(_clientDiagnostics, Pipeline, message.Request, message.Response, OperationFinalStateVia.Location, "WeatherClient.CreateDataIngestionJob");
671switch (message.Response.Status)
674return new LowLevelBinaryDataOperation(_clientDiagnostics, Pipeline, message.Request, message.Response, OperationFinalStateVia.Location, "WeatherClient.CreateDataIngestionJob");
676throw _clientDiagnostics.CreateRequestFailedException(message.Response);
681return new LowLevelBinaryDataOperation(_clientDiagnostics, Pipeline, message.Request, message.Response, OperationFinalStateVia.Location, "WeatherClient.CreateDataIngestionJob");
766switch (message.Response.Status)
769return message.Response;
771throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
776return message.Response;
844switch (message.Response.Status)
847return message.Response;
849throw _clientDiagnostics.CreateRequestFailedException(message.Response);
854return message.Response;
961switch (message.Response.Status)
964return new LowLevelBinaryDataOperation(_clientDiagnostics, Pipeline, message.Request, message.Response, OperationFinalStateVia.Location, "WeatherClient.CreateDataDeleteJob");
966throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false);
971return new LowLevelBinaryDataOperation(_clientDiagnostics, Pipeline, message.Request, message.Response, OperationFinalStateVia.Location, "WeatherClient.CreateDataDeleteJob");
1063switch (message.Response.Status)
1066return new LowLevelBinaryDataOperation(_clientDiagnostics, Pipeline, message.Request, message.Response, OperationFinalStateVia.Location, "WeatherClient.CreateDataDeleteJob");
1068throw _clientDiagnostics.CreateRequestFailedException(message.Response);
1073return new LowLevelBinaryDataOperation(_clientDiagnostics, Pipeline, message.Request, message.Response, OperationFinalStateVia.Location, "WeatherClient.CreateDataDeleteJob");